38 lines
1002 B
YAML
38 lines
1002 B
YAML
|
name: CI
|
||
|
on:
|
||
|
- push
|
||
|
jobs:
|
||
|
janitorial:
|
||
|
name: janitorial
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: https://github.com/actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
profile: minimal
|
||
|
components: clippy
|
||
|
override: true
|
||
|
- uses: https://github.com/actions-rs/clippy-check@v1
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
args: --all-targets --all-features -- -D warnings
|
||
|
- uses: https://github.com/actions-rs/cargo@v1
|
||
|
with:
|
||
|
command: fmt
|
||
|
args: --check
|
||
|
test:
|
||
|
name: test
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: https://github.com/actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
override: true
|
||
|
- uses: https://github.com/actions-rs/cargo@v1
|
||
|
with:
|
||
|
command: test
|
||
|
args: --release --target=${{ matrix.target }}
|