12345678910111213141516171819202122232425262728293031323334353637 |
- name: Build
- on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
- env:
- CARGO_TERM_COLOR: always
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Build
- run: cargo build --verbose
- - name: Run tests
- run: cargo test --verbose
- # As discussed, these tasks are optional for PRs.
- style_checks:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Rustfmt
- run: cargo fmt -- --check
- - name: Clippy
- run: cargo clippy
- - name: Rustdoc
- run: cargo doc
|