summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNadrieril2020-03-18 12:54:04 +0000
committerNadrieril2020-03-18 12:54:45 +0000
commitca3ba139a21337add76fbf48eee3b2b1b82adaef (patch)
tree7005a8eac47b8758ddf07e091a7fa3dc3d0d7c47 /.github/workflows
parentf90f00c38861a49eba950a59424be8796f266524 (diff)
Setup CI to test with various toolchains
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rust.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 2d78480..4c75d53 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -18,6 +18,7 @@ jobs:
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
+ profile: minimal
components: rustfmt
- name: Run rustfmt
uses: actions-rs/cargo@v1
@@ -36,6 +37,7 @@ jobs:
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
+ profile: minimal
components: clippy
- name: Run clippy
uses: actions-rs/cargo@v1
@@ -46,6 +48,13 @@ jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust:
+ - stable
+ - beta
+ - nightly
+ - 1.42.0 # Minimum supported version
steps:
- name: Checkout branch
uses: actions/checkout@master
@@ -53,6 +62,10 @@ jobs:
submodules: true
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: ${{ matrix.rust }}
+ override: true
- name: Run tests and gather coverage data
uses: actions-rs/tarpaulin@v0.1
with: