Skip to content

Commit 565ddb6

Browse files
authored
👷 Update pre-commit workflow (#2096)
1 parent a42f89b commit 565ddb6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
# To be able to commit it needs the head branch of the PR, the remote one
3838
ref: ${{ github.event.pull_request.head.sha }}
3939
fetch-depth: 0
40+
- uses: actions/setup-node@v6
41+
with:
42+
node-version: lts/*
4043
- name: Set up Python
4144
uses: actions/setup-python@v6
4245
with:
@@ -48,14 +51,14 @@ jobs:
4851
requirements**.txt
4952
pyproject.toml
5053
uv.lock
51-
- name: Install Dependencies
52-
run: uv sync
53-
working-directory: backend
54+
- name: Install backend dependencies
55+
run: uv sync --all-packages
56+
- name: Install frontend dependencies
57+
run: npm ci
5458
- name: Run prek - pre-commit
5559
id: precommit
5660
run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure
5761
continue-on-error: true
58-
working-directory: backend
5962
- name: Commit and push changes
6063
if: env.HAS_SECRETS == 'true'
6164
run: |

0 commit comments

Comments
 (0)