2022-06-28 16:24:56 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-06-30 13:36:41 +00:00
|
|
|
|
|
|
|
name: Rust
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
2022-06-28 16:24:56 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-30 13:36:41 +00:00
|
|
|
|
|
|
|
steps:
|
2022-04-10 06:14:00 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-30 13:36:41 +00:00
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
2022-06-28 16:24:56 +00:00
|
|
|
args: --all -- --check
|
2021-06-30 13:36:41 +00:00
|
|
|
|
2022-06-28 16:24:56 +00:00
|
|
|
- uses: actions-rs/install@v0.1
|
2021-06-30 13:36:41 +00:00
|
|
|
with:
|
2022-06-28 16:24:56 +00:00
|
|
|
crate: cargo-hack
|
|
|
|
version: latest
|
|
|
|
use-tool-cache: true
|
2021-06-30 13:36:41 +00:00
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: hack
|
2022-06-28 16:24:56 +00:00
|
|
|
args: check --workspace --ignore-private --each-feature --no-dev-deps
|
2021-06-30 13:36:41 +00:00
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
2022-06-28 16:24:56 +00:00
|
|
|
args: --workspace --all-targets --all-features
|
2021-06-30 13:36:41 +00:00
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
|
2022-06-28 16:24:56 +00:00
|
|
|
- uses: actions-rs/clippy-check@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
args: --all-features
|
|
|
|
|
|
|
|
- uses: actions-rs/audit-check@v1
|
2021-06-30 13:36:41 +00:00
|
|
|
with:
|
2022-06-28 16:24:56 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|