Code Coverage Workflow #1263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Coverage Workflow | |
on: | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.run_number) || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
code-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
- name: Nix Caching | |
uses: cachix/cachix-action@v15 | |
with: | |
name: espresso-systems-private | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: ${{ github.actor == 'dependabot[bot]' }} | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Generate coverage reports | |
# Use the `release` profile rather than `release-lto` as other workflows do, since `-- | |
# profile=release-lto` will cause the `failed to generate report` error. | |
run: | | |
nix develop .#perfShell -c just tokio code_coverage | |
timeout-minutes: 90 | |
- name: Coveralls upload | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |