Skip to content

Commit 0634551

Browse files
committed
fix test ci
1 parent aa7aa3b commit 0634551

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ jobs:
1010
build:
1111
name: Run Tests
1212
runs-on: ubuntu-22.04
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
# Customize the Meson build type here ("plain", "debug", "debugoptimized", "release", "minsize", "custom".)
17-
config:
18-
- name: Test Release
19-
buildtype: release
20-
21-
- name: Test Debug
22-
buildtype: debug
23-
2413
steps:
2514
- uses: actions/checkout@v4
2615
with:
@@ -44,21 +33,25 @@ jobs:
4433
4534
4635
- name: Configure
47-
run: meson setup build -Dbuildtype=${{ matrix.config.buildtype }} -Db_coverage=true -Dtests=true
36+
run: meson setup build -Dbuildtype=debug -Db_coverage=true -Dtests=true
4837

4938
- name: Build
5039
run: meson compile -C build
5140

5241
- name: Coverage
53-
run: ninja coverage-xml -C build
54-
42+
run: ninja coverage -C build
5543

56-
- name: Monitor coverage
57-
uses: slavcodev/coverage-monitor-action@v1
44+
- name: Create Coverage Report
45+
uses: insightsengineering/coverage-action@v2
5846
with:
59-
github_token: ${{ secrets.GITHUB_TOKEN }}
60-
coverage_path: "build/meson-logs/coverage.xml"
61-
threshold_metric: "lines"
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
path: ./build/meson-logs/coverage.xml
49+
fail: false # TODO: enable after coverage is higher than 0.000001 % xD
50+
# Publish the rendered output as a PR comment
51+
publish: true
52+
coverage-summary-title: "Code Coverage Summary"
53+
togglable-report: true
54+
# TODO: use the diff feature of that later when we require test coverage on PR's to not go down
6255

6356
- name: Upload test coverage artifacts
6457
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)