diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 0c9c8f7..b8a3ed6 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -29,18 +29,3 @@ jobs: with: components: clippy, rust-src - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic - - coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - components: llvm-tools-preview - - uses: taiki-e/install-action@cargo-llvm-cov - - run: cargo llvm-cov --all --lcov --output-path lcov.info - - uses: codecov/codecov-action@v5 - with: - files: lcov.info - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..c7b94c1 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,23 @@ +name: checks + +"on": + pull_request: + +permissions: + contents: read + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + components: llvm-tools-preview + - uses: taiki-e/install-action@cargo-llvm-cov + - run: cargo llvm-cov --all --lcov --output-path lcov.info + - uses: codecov/codecov-action@v5 + with: + files: lcov.info + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}