37 lines
809 B
YAML
37 lines
809 B
YAML
|
name: Check
|
||
|
|
||
|
on: push
|
||
|
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
|
||
|
jobs:
|
||
|
check:
|
||
|
runs-on: ubuntu-latest
|
||
|
name: Check
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: cargo check
|
||
|
run: cargo check
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
name: Test
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: cargo test
|
||
|
run: cargo test
|
||
|
clippy:
|
||
|
runs-on: ubuntu-latest
|
||
|
name: Lint (clippy)
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: cargo clippy
|
||
|
run: cargo clippy -- -D warnings
|
||
|
fmt:
|
||
|
runs-on: ubuntu-latest
|
||
|
name: Format
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: cargo fmt
|
||
|
run: cargo fmt --check
|