From 8f85df22f836e07f87e3448be38c3540056c38db Mon Sep 17 00:00:00 2001 From: Moreal Date: Sun, 23 Jun 2024 10:08:45 +0900 Subject: [PATCH] ci(gh-actions): recover code coverage workflow --- .github/workflows/test.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a106b97..93f94ab 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,25 +1,24 @@ on: push name: test +permissions: + contents: read jobs: run-tests: runs-on: ubuntu-20.04 + container: + image: xd009642/tarpaulin:0.30.0 + options: --security-opt seccomp=unconfined steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions-rs/toolchain@v1.0.3 - with: - toolchain: 1.49.0 - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@v0.1 - with: - version: latest - + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml - name: Upload to codecov.io uses: codecov/codecov-action@v1.0.2 with: token: ${{ secrets.CODECOV_TOKEN }} - - name: Archive code coverage results uses: actions/upload-artifact@v1 with: