Skip to content

Commit

Permalink
Upload test coverage info to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
windytan committed Sep 25, 2024
1 parent da2592c commit f1bbcb3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build

on:
push:
branches: [ master ]
branches: [ master, dev ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
Expand Down Expand Up @@ -79,9 +79,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install dependencies (brew)
run: brew install meson libsndfile liquid-dsp nlohmann-json catch2 perl
run: brew install meson libsndfile liquid-dsp nlohmann-json catch2 perl gcovr
- name: meson setup
run: meson setup -Dwerror=true -Db_sanitize=address,undefined -Db_lundef=false build
run: meson setup -Dwerror=true -Db_sanitize=address,undefined -Db_lundef=false -Db_coverage=true build
- name: compile & install
run: cd build && meson install
- name: download test data
Expand All @@ -90,6 +90,13 @@ jobs:
run: cd build && meson test
- name: Test command-line interface
run: perl test/cli.pl redsea --installed
- name: Coverage
run: cd build && ninja coverage-xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
files: build/meson-logs/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}

build-windows-msys2-mingw:
runs-on: windows-latest
Expand Down

0 comments on commit f1bbcb3

Please sign in to comment.