Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage #1561

Merged
merged 9 commits into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/meson.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: meson build and test
run-name: update pushed to ${{ github.ref }}
on: [check_run, pull_request, push]
on: [check_run, push]

jobs:
publish:
Expand Down Expand Up @@ -31,3 +31,35 @@ jobs:
meson-version: 1.5.1
ninja-version: 1.11.1.1
action: test

coverage:
runs-on: ubuntu-latest

steps:
- name: checkout repository
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v5

- name: meson build
uses: BSFishy/[email protected]
with:
meson-version: 1.5.1
ninja-version: 1.11.1.1
setup-options: -Db_coverage=true
action: build

- name: meson test
uses: BSFishy/[email protected]
with:
meson-version: 1.5.1
ninja-version: 1.11.1.1
setup-options: -Db_coverage=true
action: test

- name: generate code coverage report
uses: threeal/[email protected]
with:
coveralls-send: true
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading