docs: 「고쳤다고 신고한 것」을 산출물과 전수 동기 — 「다섯」 3자리 · verification 필드 #71
Workflow file for this run
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: [push] | |
| jobs: | |
| test: | |
| name: coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Cache cargo | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.cargo | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo | |
| - name: Cache cargo build | |
| uses: actions/cache@v6 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-stable-coverage-build-target-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-stable-coverage-build-target- | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Generate code coverage | |
| run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: lcov.info | |
| # This fork has no CODECOV_TOKEN (secrets are not inherited from the | |
| # upstream repo), so every upload is rejected with "Token required - | |
| # not valid tokenless upload". Failing CI on that made `coverage` red | |
| # on all 24 runs since the workflow started reporting, which buries | |
| # real regressions instead of surfacing them. Upload errors are now | |
| # non-fatal; the error text is still printed in this step's log. | |
| # The coverage run itself is the separate "Generate code coverage" | |
| # step above, which still fails the job if the build or tests break. | |
| # Set CODECOV_TOKEN on this fork to make uploads work again. | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} |