Update rust.yml

This commit is contained in:
Simon Johnston
2020-10-28 10:36:38 -07:00
committed by GitHub
parent a83183d7df
commit f753854255
+21 -16
View File
@@ -1,24 +1,29 @@
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Build docs
run: cargo doc --verbose --no-deps
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v1
- name: Install dependencies
run: rustup component add rustfmt
- name: Format
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --all-features --verbose
- name: Docs
run: cargo doc --no-deps