68 lines
1.4 KiB
YAML
68 lines
1.4 KiB
YAML
on: [push, pull_request]
|
|
|
|
name: lint
|
|
|
|
jobs:
|
|
check:
|
|
name: Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Run cargo check
|
|
uses: clechasseur/rs-cargo@v2
|
|
continue-on-error: true
|
|
with:
|
|
command: check
|
|
|
|
test:
|
|
name: Test Suite
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Run cargo test
|
|
uses: clechasseur/rs-cargo@v2
|
|
continue-on-error: true
|
|
with:
|
|
command: test
|
|
|
|
lints:
|
|
name: Lints
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt, clippy
|
|
|
|
- name: Run cargo fmt
|
|
uses: clechasseur/rs-cargo@v2
|
|
continue-on-error: true
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
|
|
- name: Run cargo clippy
|
|
uses: clechasseur/rs-cargo@v2
|
|
continue-on-error: true
|
|
with:
|
|
command: clippy
|
|
args: -- -D warnings
|