yewprint/.github/workflows/rust.yml
Cecile Tonglet 1e840c81ef
Router (#29)
2020-09-29 18:47:33 +02:00

26 lines
523 B
YAML

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cargo fmt -- --check
if: ${{ github.event_name == 'pull_request' }}
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
- run: cargo test --all-features --verbose
- run: cargo doc --verbose --all-features