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 26, 2024
1 parent 23b063d commit fedef68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ redsea is a lightweight command-line [FM-RDS](https://en.wikipedia.org/wiki/Radi
decoder that supports many [RDS features][Wiki: Features].

[![release](https://img.shields.io/github/release/windytan/redsea.svg)](https://github.com/windytan/redsea/releases/latest)
![build](https://github.com/windytan/redsea/workflows/build/badge.svg)
[![build](https://github.com/windytan/redsea/workflows/build/badge.svg)](https://github.com/windytan/redsea/actions/workflows/build.yml?query=branch%3Amaster)
[![codecov](https://codecov.io/github/windytan/redsea/graph/badge.svg?token=rlYtqSE4Cx)](https://codecov.io/github/windytan/redsea)

It prints [newline-delimited JSON](https://jsonlines.org/) where
each line corresponds to one RDS group. It can also print "raw" undecoded hex blocks (`--output hex`).
Expand Down

0 comments on commit fedef68

Please sign in to comment.