Skip to content

Be able to choose other keys/scales #30

Be able to choose other keys/scales

Be able to choose other keys/scales #30

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
playwright-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install application dependencies
run: npm ci
- name: Build server with coverage
run: npm run build-coverage
- name: Install test dependencies
run: npm ci
working-directory: tests-e2e
- name: Install Playwright browsers
run: npx playwright install --with-deps
working-directory: tests-e2e
- name: Run server with coverage
run: |
npm run start-coverage > server.log 2>&1 &
echo $! > server.pid
env:
CI: true
- name: Run Playwright tests
run: npm test
working-directory: tests-e2e
env:
CI: true
- name: Stop server
run: |
SERVER_PID=$(cat server.pid)
sleep 5
kill $SERVER_PID
sleep 5
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: tests-e2e/playwright-report
retention-days: 30
- uses: actions/upload-artifact@v3
if: always()
with:
name: coverage-report
path: coverage
retention-days: 30
- uses: actions/upload-artifact@v3
if: always()
with:
name: server-log
path: server.log
retention-days: 30