Add linting
This commit is contained in:
parent
5aa1b9c795
commit
7c616b3055
1 changed files with 16 additions and 8 deletions
24
.github/workflows/rust.yml
vendored
24
.github/workflows/rust.yml
vendored
|
|
@ -2,21 +2,29 @@ name: Rust
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
branches: ["master"]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
branches: ["master"]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
cd backend
|
||||
cargo clippy --all-targets --all --all-features
|
||||
cargo fmt --all -- --check
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue