-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: modified PR condition and updated action
- Loading branch information
1 parent
4865007
commit 2e196ab
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,17 @@ on: | |
push: | ||
branches: [main, develop, 127-fix-precommit-conditions] | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
install-dev-tools: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: dev env setup | ||
uses: ./.github/actions/dev-env-setup | ||
- run: yarn install --frozen-lockfile | ||
working-directory: ./client | ||
pre-commit: | ||
needs: install-dev-tools | ||
runs-on: ubuntu-latest | ||
|
@@ -30,4 +39,5 @@ jobs: | |
path: | | ||
./.pre-commit-cache | ||
key: pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}-v3 | ||
- run: pre-commit run --all-files | ||
- run: pip install -r requirements.txt | ||
- uses: pre-commit/[email protected] |