Skip to content

Commit

Permalink
Modify workflow for playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Dec 1, 2024
1 parent 5488c9d commit bb26963
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/nextjs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Change directory
run: cd packages/nextjs
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- name: Build Next.js app
run: yarn build
- name: Start Next.js app and run tests
run: |
yarn start & # Start in background
sleep 10 # Wait for server to start
yarn playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down

0 comments on commit bb26963

Please sign in to comment.