Update rust.yml
This commit is contained in:
28
.github/workflows/rust.yml
vendored
28
.github/workflows/rust.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user