2022-09-15 08:55:29 +00:00
|
|
|
name: test
|
2022-09-05 01:14:20 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
2022-09-14 17:57:48 +00:00
|
|
|
check:
|
2022-09-15 08:55:29 +00:00
|
|
|
name: check
|
2022-09-14 17:57:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2022-12-02 23:39:41 +00:00
|
|
|
- uses: Swatinem/rust-cache@v2
|
2022-09-14 17:57:48 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
2022-09-05 01:14:20 +00:00
|
|
|
|
2022-09-14 17:57:48 +00:00
|
|
|
test:
|
2022-09-15 08:55:29 +00:00
|
|
|
name: test
|
2022-09-05 01:14:20 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-14 17:57:48 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2022-12-02 23:39:41 +00:00
|
|
|
- uses: Swatinem/rust-cache@v2
|
2022-09-14 17:57:48 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
2022-11-03 23:36:14 +00:00
|
|
|
args: --all
|
2022-09-05 01:14:20 +00:00
|
|
|
|
2022-09-14 17:57:48 +00:00
|
|
|
fmt:
|
2022-09-15 08:55:29 +00:00
|
|
|
name: fmt
|
2022-09-14 17:57:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-05 01:14:20 +00:00
|
|
|
steps:
|
2022-09-14 17:57:48 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2022-12-02 01:21:20 +00:00
|
|
|
components: rustfmt
|
2022-12-02 23:39:41 +00:00
|
|
|
- uses: Swatinem/rust-cache@v2
|
2022-09-14 17:57:48 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|
2022-12-02 01:21:20 +00:00
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
components: clippy
|
2022-12-02 23:39:41 +00:00
|
|
|
- uses: Swatinem/rust-cache@v2
|
2022-12-02 01:21:20 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: --all -- -D warnings
|