Skip to content

Commit

Permalink
Create pre-commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mtitus6 committed Apr 6, 2024
1 parent d1d7c24 commit deb5e95
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pre-commit

on:
push:
branches:
- main
# Add additional branches as needed

jobs:
pre-commit:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: pip install pre-commit

- name: Run pre-commit
run: pre-commit run --all-files

0 comments on commit deb5e95

Please sign in to comment.