Skip to content

Commit 5b77d7c

Browse files
committed
Use pre-commit instead of npm run fmt
1 parent d569855 commit 5b77d7c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/test.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ jobs:
4141
run: |
4242
npm ci
4343
44-
- name: "`npm run fmt` and check for changes"
45-
run: |
46-
# If this fails, run `npm run fmt` and push the result
47-
# amend if you feel so inclined.
48-
npm run fmt
49-
git diff --exit-code
44+
# Run the pre-commit action
45+
# Repo: https://github.com/pre-commit/action
46+
- uses: actions/setup-python@v2
47+
- uses: pre-commit/[email protected]
5048

5149
- name: npm audit
5250
run: |

0 commit comments

Comments
 (0)