From bdd2076eec0582b83712ac79fe88d18acf998cf1 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Sat, 30 Nov 2019 10:38:52 +0000 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d83912d..e5797ce 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,15 +1,23 @@ -name: Rust +name: Continuous integration -on: [push] +on: [push, pull_request] jobs: - build: - + check: + name: Check runs-on: ubuntu-latest - + strategy: + matrix: + rust: + - stable + - 1.36.0 steps: - - uses: actions/checkout@v1 - - name: Build - run: cargo build --all --all-features --verbose - - name: Run tests - run: cargo test --all --all-features --verbose + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - uses: actions-rs/cargo@v1 + with: + command: check