File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 branches : [main, develop]
55 pull_request :
66 branches : [main, develop]
7- env :
8- NEXT_PUBLIC_FORMSPREE_ID : ${{ secrets.NEXT_PUBLIC_FORMSPREE_ID }}
9- NEXT_PUBLIC_RECAPTCHA_SITE_KEY : ${{ secrets.NEXT_PUBLIC_RECAPTCHA_SITE_KEY }}
107jobs :
118 e2e :
129 timeout-minutes : 60
1310 runs-on : ubuntu-latest
1411 steps :
1512 - uses : actions/checkout@v3
13+ - name : Prepare .env file
14+ run : |
15+ rm -f .env && touch .env
16+ echo "NEXT_PUBLIC_FORMSPREE_ID=${{ secrets.NEXT_PUBLIC_FORMSPREE_ID }}" >> .env
17+ echo "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.NEXT_PUBLIC_RECAPTCHA_SITE_KEY }}" >> .env
1618 - uses : actions/setup-node@v3
1719 with :
1820 node-version : ' 18.x'
1921 - name : Install dependencies
20- run : npm install -g yarn && yarn install --frozen-lockfile
22+ run : npm ci
2123 - name : Install Playwright Browsers
22- run : yarn playwright install --with-deps
24+ run : npx playwright install --with-deps
2325 - name : Run Playwright tests
24- run : yarn test
26+ run : npm run test
2527 - uses : actions/upload-artifact@v3
2628 if : always()
2729 with :
You can’t perform that action at this time.
0 commit comments