Repository navigation
Group codeql-action updates and bump them to v4.39.1 #121
This file contains hidden or 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: Coverage | |
| "on": | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| # Each main run gets a group of its own, since GitHub drops a pending run of a group when a newer one queues. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| coverage: | |
| name: Coverage | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| # Neither a fork's pull request nor a Dependabot run can read CODECOV_TOKEN. | |
| if: >- | |
| github.event_name == 'push' || | |
| (github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.user.login != 'dependabot[bot]') | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install stable toolchain with llvm-tools | |
| run: | | |
| rustup toolchain install stable \ | |
| --profile minimal \ | |
| --component llvm-tools-preview | |
| - uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26 | |
| with: | |
| tool: cargo-llvm-cov | |
| - name: Test coverage | |
| run: cargo +stable llvm-cov --all-targets --codecov --output-path codecov.json | |
| - uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 | |
| with: | |
| files: codecov.json | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true |