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: