From 3824f85af6a1657f446ead64b4b7af1eee0195af Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Wed, 1 Jul 2026 11:56:59 +0200 Subject: [PATCH] ci(portal-self-service): Nx frontend lane (lint/test/build) (refs #65) Add a make frontend target (pnpm install --frozen-lockfile + nx run-many -t lint test build) and a CI 'frontend' job (pnpm + Node 24, pinned action URLs). Wire frontend into make ci. The .NET lanes are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/ci.yaml | 14 ++++++++++++++ Makefile | 11 ++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8501935..eff1cd1 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -43,6 +43,20 @@ jobs: dotnet-version: '10.0.x' - run: make unit + # Frontend (Nx/Angular) lane: install with pnpm, then Nx lint + test + build. + frontend: + runs-on: ubuntu-latest + steps: + - uses: https://github.com/actions/checkout@v4 + - uses: https://github.com/pnpm/action-setup@v4 + with: + version: 11 + - uses: https://github.com/actions/setup-node@v4 + with: + node-version: '24' + cache: 'pnpm' + - run: make frontend + mutation: runs-on: ubuntu-latest steps: diff --git a/Makefile b/Makefile index 55879a5..01b48ae 100644 --- a/Makefile +++ b/Makefile @@ -43,11 +43,16 @@ export DOCKER_HOST := unix://$(PODMAN_SOCK) endif endif -.PHONY: ci lint build unit mutation integration verify verify-up verify-acl verify-nrc verify-projection verify-notifications smoke up down local local-down changelog openzaak-up openzaak-smoke openzaak-seed openzaak-down stack-up stack-smoke stack-down keycloak-up keycloak-smoke keycloak-down flowable-up flowable-smoke flowable-down help +.PHONY: ci lint build unit mutation frontend integration verify verify-up verify-acl verify-nrc verify-projection verify-bff verify-domain verify-notifications smoke up down local local-down changelog openzaak-up openzaak-smoke openzaak-seed openzaak-down stack-up stack-smoke stack-down keycloak-up keycloak-smoke keycloak-down flowable-up flowable-smoke flowable-down help -## ci: run the full pipeline — lint, build, unit, mutation, verify (mirrors Gitea Actions) +## ci: run the full pipeline — lint, build, unit, mutation, frontend, verify (mirrors Gitea Actions) ## `verify` is the live-stack stage (full stack up once → ACL + notification checks). -ci: lint build unit mutation verify +ci: lint build unit mutation frontend verify + +## frontend: install deps and run the Nx lint/test/build for the portals (pnpm + Node required) +frontend: + pnpm install --frozen-lockfile + pnpm nx run-many -t lint test build ## lint: verify formatting (no changes) lint: