Skip to content

Commit

Permalink
Add format and clippy check to GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matej-almasi committed Dec 8, 2024
1 parent 7ca142e commit 52a83dc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pr-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,29 @@ jobs:

- name: Test
run: ${{ matrix.platform.command }} test --target ${{ matrix.platform.target }}

format:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install nightly
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt

- name: Format
run: cargo +nightly fmt --check

clippy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Clippy lint
run: cargo clippy -- -D warnings

0 comments on commit 52a83dc

Please sign in to comment.