From a9153f0cd7980f7cd51e5376d7afdfa372973d6a Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 18 Mar 2020 13:01:11 +0000 Subject: Don't upload coverage for all toolchains --- .github/workflows/rust.yml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4c75d53..a9ba892 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,16 +45,13 @@ jobs: command: clippy args: -- -D warnings - test: - name: Run test suite + test_and_coverage: + name: Run tests and gather coverage data runs-on: ubuntu-latest strategy: matrix: rust: - stable - - beta - - nightly - - 1.42.0 # Minimum supported version steps: - name: Checkout branch uses: actions/checkout@master @@ -74,3 +71,28 @@ jobs: uses: codecov/codecov-action@v1.0.2 with: token: ${{secrets.CODECOV_TOKEN}} + + test: + name: Run tests + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - beta + - nightly + - 1.42.0 # Minimum supported version + steps: + - name: Checkout branch + uses: actions/checkout@master + with: + submodules: true + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test -- cgit v1.2.3