Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/client-participation-alpha-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Client Participation Alpha CI

concurrency:
group: client-participation-alpha-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [edge]
paths:
- "client-participation-alpha/**"
pull_request:
paths:
- "client-participation-alpha/**"

jobs:
verify:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
cache-dependency-path: client-participation-alpha/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: client-participation-alpha

- name: Check formatting
run: npm run format -- --check
working-directory: client-participation-alpha

- name: Run linter
run: npm run lint
working-directory: client-participation-alpha

- name: Run tests with coverage
run: npm run test:coverage
working-directory: client-participation-alpha

- name: Build
run: npm run build
working-directory: client-participation-alpha

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
directory: client-participation-alpha/coverage
flags: client-participation-alpha
name: client-participation-alpha-coverage
fail_ci_if_error: false
12 changes: 11 additions & 1 deletion .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ jobs:

- name: Build Docker images
run: |
# Build all services defined in test compose file
# Build postgres with --no-cache to ensure latest migrations are used
# Docker layer caching can cause old migration files to persist
docker compose -f docker-compose.test.yml --env-file test.env build --no-cache postgres

# Build remaining services (caching OK for these)
docker compose -f docker-compose.test.yml --env-file test.env build

- name: Start services
Expand Down Expand Up @@ -111,6 +115,12 @@ jobs:
echo "Checking server API..."
curl -f http://localhost/api/v3/participationInit || true

- name: Show postgres initialization logs
if: always()
run: |
echo "=== Postgres container logs (shows migration execution) ==="
docker compose -f docker-compose.test.yml logs postgres | head -200

- name: Show service logs
if: always()
run: |
Expand Down
Loading
Loading