diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a488c7a48..3ff5fbce6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,20 +91,3 @@ jobs: with: command: fmt args: --all -- --check - - coverage: - name: Coverage - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@v0.1 - with: - version: 'latest' - timeout: 600 - - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v1.0.13 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..52ace8904 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + + coverage: + name: Coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + version: 'latest' + timeout: 600 + - name: Upload coverage report to Codecov + uses: codecov/codecov-action@v1.0.13