Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
teckmk committed Aug 8, 2024
1 parent 45c0a33 commit efafa65
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,28 @@ env:
CARGO_TERM_COLOR: always

jobs:
lint:
name: Lint Rust Workspace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- run: cargo clippy --workspace -- -D warnings

format:
name: Format Rust Workspace
needs:
- lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- run: cargo fmt --all -- --check

build_and_test:
name: Build and Test Rust Workspace
needs:
- format
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -23,18 +43,5 @@ jobs:
- run: cargo build --workspace --verbose
- run: cargo test --workspace --verbose

format:
name: Format Rust Workspace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- run: cargo fmt --all -- --check

lint:
name: Lint Rust Workspace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- run: cargo clippy --workspace -- -D warnings

0 comments on commit efafa65

Please sign in to comment.