add playwright tests
Some checks failed
CI/CD Pipeline / test-frontend (push) Failing after 4s
CI/CD Pipeline / test-backend (push) Has been cancelled
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled

This commit is contained in:
2024-01-16 16:00:02 +01:00
parent 2f26ce7e31
commit ce3562f079
5 changed files with 128 additions and 3 deletions

View File

@ -9,7 +9,28 @@ env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
jobs:
test:
test-frontend:
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 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
test-backend:
runs-on: ubuntu-latest
container: rust:latest
@ -35,7 +56,7 @@ jobs:
deploy-staging:
runs-on: ubuntu-latest
container: rust:latest
needs: [test]
needs: [test_frontend, test_backend]
if: github.ref == 'refs/heads/staging'
steps:
- name: Setup Environment
@ -95,7 +116,7 @@ jobs:
deploy-main:
runs-on: ubuntu-latest
container: rust:latest
needs: [test]
needs: [test_frontend, test_backend]
if: github.ref == 'refs/heads/main'
steps:
- name: Setup Environment