Skip to content

Commit

Permalink
ci: Use pre-commit for linting on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Apr 21, 2024
1 parent ba80772 commit 294ce78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 40 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ defaults:
shell: bash # necessary for windows

jobs:
lint:
uses: ./.github/workflows/lint-app.yml

test:
needs: lint
strategy:
fail-fast: false
matrix:
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/lint-website.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Lint App
name: Lint

permissions:
checks: write
contents: read

on:
workflow_call:

env:
CARGO_TERM_COLOR: always

jobs:
rustfmt:
pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Run rustfmt
run: cargo fmt --all --check
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1

0 comments on commit 294ce78

Please sign in to comment.