Skip to content

chore(deps): update dependency eslint to v9 #983

chore(deps): update dependency eslint to v9

chore(deps): update dependency eslint to v9 #983

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Double Open Oy
#
# SPDX-License-Identifier: MIT
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
environment: test-environment
env:
DATABASE_URL: ${{ vars.DATABASE_URL }}
E2E_USER_USERNAME: ${{ secrets.E2E_USER_USERNAME }}
E2E_USER_PASSWORD: ${{ secrets.E2E_USER_PASSWORD }}
KEYCLOAK_URL: ${{ vars.KEYCLOAK_URL }}
KEYCLOAK_REALM: ${{ secrets.KEYCLOAK_REALM }}
KEYCLOAK_CLIENT_ID_UI: ${{ secrets.KEYCLOAK_CLIENT_ID_UI }}
KEYCLOAK_CLIENT_SECRET_UI: ${{ secrets.KEYCLOAK_CLIENT_SECRET_UI }}
KEYCLOAK_CLIENT_ID_API: ${{ secrets.KEYCLOAK_CLIENT_ID_API }}
KEYCLOAK_CLIENT_SECRET_API: ${{ secrets.KEYCLOAK_CLIENT_SECRET_API }}
KEYCLOAK_ADMIN_USERNAME: ${{ secrets.KEYCLOAK_ADMIN_USERNAME }}
KEYCLOAK_ADMIN_PASSWORD: ${{ secrets.KEYCLOAK_ADMIN_PASSWORD }}
KEYCLOAK_ADMIN_USER_ID: ${{ secrets.KEYCLOAK_ADMIN_USER_ID }}
KEYCLOAK_ADMIN_CLIENT_SECRET: ${{ secrets.KEYCLOAK_ADMIN_CLIENT_SECRET }}
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXT_PUBLIC_API_URL: http://localhost:3001/api/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.13.1
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
working-directory: apps/clearance_ui
run: npx playwright install --with-deps
- name: Run prisma generate
run: npm run db:generate
- name: Build project
run: npm run build
- name: Start the testing environment
run: docker compose up -d
- name: Seed the database and populate the spaces bucket
run: npm run db:migrate:reset
- name: Run Playwright tests
run: npm run test:e2e
- name: Print Docker Compose logs
run: docker compose logs
if: failure()
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: apps/clearance_ui/playwright-report/
retention-days: 30