Skip to content

Commit

Permalink
Skip pre-commit fmt in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sanders41 committed Jan 12, 2024
1 parent 4b3989d commit 58f1a33
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ jobs:
run: sh ./ci/prep_tests.sh
- name: Run cargo clippy
run: cargo clippy --all-targets -- --deny warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Cache dependencies
uses: Swatinem/[email protected]
- name: Run cargo fmt
run: cargo fmt --all -- --check
test:
name: Tests
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ci:
skip: [fmt]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand Down

0 comments on commit 58f1a33

Please sign in to comment.