File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,22 @@ jobs:
93
93
- name : Peek
94
94
run : pnpm peek
95
95
if : ${{ github.repository == 'nextauthjs/next-auth' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
96
+ - name : Check for changes under /packages
97
+ id : check-packages
98
+ run : |
99
+ if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^packages/'; then
100
+ echo "PACKAGES_CHANGES=true" >> $GITHUB_ENV
101
+ else
102
+ echo "PACKAGES_CHANGES=false" >> $GITHUB_ENV
103
+ fi
96
104
- name : Build
105
+ if : ${{ env.PACKAGES_CHANGES == 'true' }}
97
106
run : pnpm build
98
107
- name : Lint
99
108
run : pnpm lint
100
109
timeout-minutes : 15
101
110
- name : Run unit tests
111
+ if : ${{ env.PACKAGES_CHANGES == 'true' }}
102
112
run : pnpm test
103
113
- name : Get installed Playwright version
104
114
id : playwright-version
You can’t perform that action at this time.
0 commit comments