Skip to content

Commit

Permalink
Fix lint-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaker committed Jun 16, 2024
1 parent c958ac4 commit dad6001
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/lint-fmt.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
name: Linter and Formatter


on:
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
- 'scripts/**'
pull_request:
branches:
- main
paths-ignore:
- 'README.md'

name: Linter and Formatter

jobs:
format:
name: Checkout PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
run: gh pr checkout ${{ github.event.pull_request.number }}

- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push
fmt:
name: Rustfmt
env:
Expand All @@ -40,6 +28,7 @@ run: git push
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
env:
Expand All @@ -57,4 +46,4 @@ run: git push
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
args: --all-targets -- -D warnings

0 comments on commit dad6001

Please sign in to comment.