parser/.github/workflows/tests.yml

36 lines
691 B
YAML
Raw Normal View History

2022-07-16 21:45:04 +02:00
name: Tests
2022-07-26 11:45:12 +02:00
on:
- push
- pull_request
2022-07-16 21:45:04 +02:00
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
2022-09-11 06:09:42 +02:00
toolchain: stable
2022-07-16 21:47:22 +02:00
override: true
2022-07-16 21:45:04 +02:00
- uses: actions-rs/cargo@v1
with:
command: test
2022-07-26 11:45:12 +02:00
args: -q
2022-09-11 21:46:34 +02: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
args: --all -- --check