Skip to content

Commit 5b48b93

Browse files
committed
ci(e2e-github-action): edit yaml based on review
1 parent 4886c72 commit 5b48b93

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@ on:
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 }}
107
jobs:
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:

0 commit comments

Comments
 (0)