Skip to content

Commit

Permalink
Upload coverage report to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed Oct 11, 2024
1 parent 27efdbe commit 180e799
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,31 @@ jobs:

- uses: taiki-e/install-action@v2
with:
tool: nextest, cargo-llvm-cov
tool: nextest, cargo-llvm-cov, llvm-cov-pretty

- name: Run tests
run: |
cargo llvm-cov nextest --target ${{ matrix.build_configuration.target }}
cargo llvm-cov report --lcov --output-path lcov.info
cargo llvm-cov --text >> $GITHUB_STEP_SUMMARY
cargo llvm-cov nextest $LLVM_COV_ARGS
cargo llvm-cov report $LLVM_COV_ARGS --lcov --output-path lcov.info
cargo llvm-cov report $LLVM_COV_ARGS --json | llvm-cov-pretty --output-dir coverage-report
env:
RUSTFLAGS: "-Ctarget-cpu=${{ matrix.build_configuration.cpu }}"
CARGO_TERM_COLOR: always
LLVM_COV_ARGS: --ignore-filename-regex 'kakadu/' --target ${{ matrix.build_configuration.target }} --include-ffi

- name: Upload coverage report
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: coverage-report/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 180e799

Please sign in to comment.