mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 13:00:19 +00:00
26 lines
523 B
YAML
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
|