2022-07-16 20:45:04 +01:00
|
|
|
name: Tests
|
|
|
|
|
2022-07-26 10:45:12 +01:00
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2022-07-16 20:45:04 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2022-09-11 16:09:42 +12:00
|
|
|
toolchain: stable
|
2022-07-16 20:47:22 +01:00
|
|
|
override: true
|
2022-07-16 20:45:04 +01:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
2022-07-26 10:45:12 +01:00
|
|
|
args: -q
|
2022-09-12 07:46:34 +12:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Format
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
2022-09-12 08:32:45 +12:00
|
|
|
args: --all -- --check
|