name: build
on: [push, pull_request]
jobs:
fmt:
name: fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup update
- run: rustup component add rustfmt
- run: cargo fmt -- --check
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup update
- run: rustup component add clippy
- run: cargo clippy --all --all-targets
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup update
- run: cargo build
- run: cargo test --verbose --all --all-targets
env:
RUST_BACKTRACE: 1