diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9281dc69..1cf2cbdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,8 @@ jobs: apt-get update apt-get install -y --no-install-recommends \ kcov valgrind \ - git ca-certificates curl xz-utils + git ca-certificates curl xz-utils \ + gnupg - name: Checkout uses: actions/checkout@v4 @@ -72,6 +73,13 @@ jobs: - name: Coverage run: zig build test-coverage -Duse-llvm=true -Dcoverage-threshold=85 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: zig-out/coverage/merged/cobertura.xml + fail_ci_if_error: false + - name: Valgrind leak checks run: zig build test-valgrind -Duse-llvm=true diff --git a/README.md b/README.md index f0455bae..322b93c7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # yaml [![CI](https://github.com/ncode/yaml/actions/workflows/ci.yml/badge.svg)](https://github.com/ncode/yaml/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/ncode/yaml/graph/badge.svg?token=97Q2MPTNBJ)](https://codecov.io/gh/ncode/yaml) Native Zig YAML 1.2.2 library.