From accb6c89625529e48546233f92246e97b064b03b Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 17:40:22 -0700 Subject: [PATCH 1/8] Add code coverage --- .github/workflows/meson.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 8314dbc13..22859d2ca 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -31,3 +31,6 @@ jobs: meson-version: 1.5.1 ninja-version: 1.11.1.1 action: test + + - name: Generate a code coverage report + uses: threeal/gcovr-action@v1.0.0 From f7d55891307fc7652e80342396997b1c02f82718 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 17:42:54 -0700 Subject: [PATCH 2/8] Update meson.yml --- .github/workflows/meson.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 22859d2ca..d91db4782 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -32,5 +32,5 @@ jobs: ninja-version: 1.11.1.1 action: test - - name: Generate a code coverage report + - name: generate code coverage report uses: threeal/gcovr-action@v1.0.0 From a03fc6bec895b9b67396162f8b05d005c49d7763 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 18:06:39 -0700 Subject: [PATCH 3/8] Update meson.yml --- .github/workflows/meson.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index d91db4782..ad0a2980f 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -23,13 +23,17 @@ jobs: with: meson-version: 1.5.1 ninja-version: 1.11.1.1 - action: build + setup-options: -Db_coverage=true + options: --verbose + action: build - name: meson test uses: BSFishy/meson-build@v1.0.3 with: meson-version: 1.5.1 ninja-version: 1.11.1.1 + setup-options: -Db_coverage=true + options: --verbose action: test - name: generate code coverage report From 428dede37c36a198c4dc28d140498d470019622c Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 18:12:42 -0700 Subject: [PATCH 4/8] Update meson.yml --- .github/workflows/meson.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index ad0a2980f..77cb832fc 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -38,3 +38,6 @@ jobs: - name: generate code coverage report uses: threeal/gcovr-action@v1.0.0 + with: + coveralls-send: true + github-token: ${{ secrets.GITHUB_TOKEN }} From 9afb67dc2f93093b0254fb65d9201431a494c5c2 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 18:16:48 -0700 Subject: [PATCH 5/8] Update meson.yml --- .github/workflows/meson.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 77cb832fc..289155fbf 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -11,6 +11,30 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - name: checkout repository + uses: actions/checkout@v4 + + - name: setup python + uses: actions/setup-python@v5 + + - name: meson build + uses: BSFishy/meson-build@v1.0.3 + with: + meson-version: 1.5.1 + ninja-version: 1.11.1.1 + action: build + + - name: meson test + uses: BSFishy/meson-build@v1.0.3 + with: + 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 @@ -24,7 +48,6 @@ jobs: meson-version: 1.5.1 ninja-version: 1.11.1.1 setup-options: -Db_coverage=true - options: --verbose action: build - name: meson test @@ -33,7 +56,6 @@ jobs: meson-version: 1.5.1 ninja-version: 1.11.1.1 setup-options: -Db_coverage=true - options: --verbose action: test - name: generate code coverage report From 3264738dbb3d33d393136901ad5077207ab741bd Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 18:18:56 -0700 Subject: [PATCH 6/8] Update meson.yml --- .github/workflows/meson.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 289155fbf..9e3f7dda5 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -35,7 +35,7 @@ jobs: coverage: runs-on: ubuntu-latest - steps: + steps: - name: checkout repository uses: actions/checkout@v4 @@ -60,6 +60,6 @@ jobs: - name: generate code coverage report uses: threeal/gcovr-action@v1.0.0 - with: - coveralls-send: true - github-token: ${{ secrets.GITHUB_TOKEN }} + with: + coveralls-send: true + github-token: ${{ secrets.GITHUB_TOKEN }} From 42e184171344e3c623ea596a0000d4d4503bffd0 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 18:19:25 -0700 Subject: [PATCH 7/8] Update meson.yml --- .github/workflows/meson.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 9e3f7dda5..5f9a4e5ad 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -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: From 8948b85e6595b3a106d29f733dd99511e52036de Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 9 Sep 2024 18:21:16 -0700 Subject: [PATCH 8/8] Update meson.yml --- .github/workflows/meson.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 5f9a4e5ad..1899470f2 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -23,7 +23,7 @@ jobs: with: meson-version: 1.5.1 ninja-version: 1.11.1.1 - action: build + action: build - name: meson test uses: BSFishy/meson-build@v1.0.3