Update rust.yml

This commit is contained in:
Alexis Mousset
2019-11-30 10:38:52 +00:00
committed by GitHub
parent 3eef024f77
commit bdd2076eec

View File

@@ -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