Skip to content

Commit

Permalink
chore(husky): Update precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Feb 12, 2024
1 parent 788c141 commit b170cf3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stage-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
branches:
- develop
paths: ['apps/api/**', '.github/workflows/api.yaml']
paths: ['apps/api/**', '.github/workflows/stage-api.yml']

jobs:
deploy-api-stage:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
branches:
- develop
paths: ['apps/web/**', '.github/workflows/web.yaml']
paths: ['apps/web/**', '.github/workflows/stage-web.yml']

jobs:
deploy-stage:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/validate-api.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
on:
push:
paths: ['apps/api/**', '.github/workflows/api.yaml']
branches:
- '!develop'
- '!main'
paths: ['apps/api/**']
pull_request:
paths: ['apps/api/**', '.github/workflows/api.yaml']
paths: ['apps/api/**']

jobs:
validate:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate-web.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on:
push:
branches:
- '!develop'
- '!main'
paths: ['apps/web/**', '.github/workflows/web.yaml']
pull_request:
paths: ['apps/web/**', '.github/workflows/web.yaml']
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run lint:fix && pnpm run prettier:fix
pnpm run lint:fix && pnpm run prettier:fix && pnpm run test:api && npx jest --clear-cache && pnpm run e2e:api

0 comments on commit b170cf3

Please sign in to comment.