chore: updated GitHub Action

This commit is contained in:
pit
2023-09-26 11:16:33 +01:00
parent 1b31d590a5
commit 2e2ef4c20b
11 changed files with 386 additions and 41 deletions

31
.github/workflows/e2e-tests.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Playwright Tests
on:
push:
branches: [feat/refresh]
pull_request:
branches: [feat/refresh]
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: Copy env
run: cp .env.example .env
- name: Build
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run ci
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30