Skip to content

Merge pull request #96 from REDDERD/dave/unit-tests #115

Merge pull request #96 from REDDERD/dave/unit-tests

Merge pull request #96 from REDDERD/dave/unit-tests #115

Workflow file for this run

name: Playwright Tests
on:
schedule:
- cron: '35 4 * * *'
push:
branches: [ main, test-deployment ]
pull_request:
branches: [ main, test-deployment ]
jobs:
E2E_Tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Start local server in the background
run: ng serve &
- name: Wait for the server to start
run: |
until nc -z -w5 localhost 4200; do
echo 'Waiting for the local server to start...'
sleep 5
done
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30