Skip to content

Bump the development-dependencies group with 3 updates (#51) #228

Bump the development-dependencies group with 3 updates (#51)

Bump the development-dependencies group with 3 updates (#51) #228

Workflow file for this run

name: CI
on: push
jobs:
unit-tests-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- name: Setup Node.js
uses: actions/setup-node@v7.0.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test
- name: Build the application
run: npm run build
e2e-tests:
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1, 2, 3]
services:
docker:
image: docker:29.6.2-cli@sha256:be132a9f282288de4afaf63379dff75711fda0147c6b72a9df44e51841402144
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- uses: actions/checkout@v7.0.1
- name: Start backend with Docker Compose
run: docker compose up -d
- name: Setup Node.js
uses: actions/setup-node@v7.0.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
- name: Make scripts executable
run: |
chmod +x ./scripts/wait-for-backend.sh
chmod +x ./scripts/wait-for-frontend.sh
chmod +x ./scripts/wait-for-keycloak.sh
- name: Wait for backend
run: ./scripts/wait-for-backend.sh
- name: Wait for Keycloak
run: ./scripts/wait-for-keycloak.sh
- name: Wait for frontend
run: ./scripts/wait-for-frontend.sh
- name: Run Playwright tests (shard ${{ matrix.shard }}/3)
run: npm run test:e2e -- --shard=${{ matrix.shard }}/3
- uses: actions/upload-artifact@v7.0.1
if: always()
with:
name: playwright-report-shard-${{ matrix.shard }}
path: playwright-report/
retention-days: 1