Skip to content

Commit

Permalink
Run node & rust formatting/linting in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaHydrae committed Feb 2, 2025
1 parent 715593f commit 36a984b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
format-node:
name: Format Node.js code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -43,6 +43,15 @@ jobs:
- name: Install Node.js dependencies
run: npm ci

- name: Format Node.js code
run: npm run format:prettier

format-and-lint-rust:
name: Format & lint Rust code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust dependencies
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -54,9 +63,6 @@ jobs:
- name: Format Rust code
run: cargo fmt -- --check

- name: Format Node.js code
run: npm run format:prettier

check-package-json-files:
name: Check package.json files
runs-on: ubuntu-latest
Expand Down Expand Up @@ -337,7 +343,8 @@ jobs:
name: Publish
runs-on: ubuntu-latest
needs:
- lint
- format-node
- format-and-lint-rust
- check-package-json-files
- test-macos-binding
- test-linux-x64-gnu-binding
Expand Down

0 comments on commit 36a984b

Please sign in to comment.