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
|
|
|
|
- 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
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
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
|
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|