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