Skip to content

Commit

Permalink
configure rustfmt and clippy in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xffxff committed Sep 18, 2023
1 parent 602903b commit 608c308
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,34 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Check
run: cargo check --verbose

format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Format
run: cargo fmt -- --check

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Clippy
run: cargo clippy -- -D warnings

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo run
- name: Test
run: cargo run

0 comments on commit 608c308

Please sign in to comment.