2019-09-21 11:10:55 +00:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
# Trigger the workflow on push or pull request
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
rustfmt:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2019-10-03 15:05:37 +00:00
|
|
|
toolchain: nightly
|
2019-09-21 11:10:55 +00:00
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2019-09-22 18:33:40 +00:00
|
|
|
toolchain: stable
|
2019-09-21 11:10:55 +00:00
|
|
|
- run: rustup component add clippy
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
2019-09-22 18:33:40 +00:00
|
|
|
# args: -- -D warnings
|