diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59e39f3..8914b0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true +env: + LCOV: lcov.info + jobs: build: runs-on: ubuntu-latest @@ -46,24 +49,25 @@ jobs: with: tool: cargo-llvm-cov - name: Run tests with coverage report - run: cargo llvm-cov --all-features --all-targets --lcov --workspace --output-path lcov.info + run: cargo llvm-cov --all-features --all-targets --lcov --workspace --output-path $LCOV - name: Upload test coverage report uses: actions/upload-artifact@v4 with: - name: lcov.info - path: lcov.info + name: $LCOV + path: $LCOV coverage: needs: test if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: lcov.info + name: $LCOV path: . - uses: coverallsapp/github-action@v2.3.0 with: base-path: / - file: lcov.info + file: $LCOV github-token: ${{ secrets.GITHUB_TOKEN }}