summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2020-03-18 13:01:11 +0000
committerNadrieril2020-03-18 13:01:11 +0000
commita9153f0cd7980f7cd51e5376d7afdfa372973d6a (patch)
treed0da5c0d3c61cb6ad69d878a54591de02ecc9c10
parentca3ba139a21337add76fbf48eee3b2b1b82adaef (diff)
Don't upload coverage for all toolchains
Diffstat (limited to '')
-rw-r--r--.github/workflows/rust.yml32
1 files 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