From f2d3dc3591595a20467809ef2538e2e5bb9b23c0 Mon Sep 17 00:00:00 2001 From: sunil Date: Mon, 2 Nov 2026 13:51:33 +0530 Subject: [PATCH 1/2] Add a pull request validation workflow for release/live. The workflow only lints or checks syntax. It does not deploy. --- .github/workflows/pr-validation.yml | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/pr-validation.yml diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 000000000..eb5ad4282 --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,49 @@ +name: pr-validation + +on: + pull_request: + branches: + - release/live + types: [opened, synchronize, reopened] + +permissions: + contents: read + +concurrency: + group: pr-validation-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint: + name: lint + runs-on: ubuntu-24.04 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20.20.2 + + - name: Install dependencies + run: npm ci --ignore-scripts + + - name: Lint + run: npm run lint + + test: + name: test + runs-on: ubuntu-24.04 + timeout-minutes: 40 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20.20.2 + + - name: Install dependencies + run: npm ci --ignore-scripts + + - name: Unit tests + run: npm test From f679be6aa8902d4b0a057de1a9ea524424d213d7 Mon Sep 17 00:00:00 2001 From: sunil Date: Mon, 2 Nov 2026 13:55:57 +0530 Subject: [PATCH 2/2] Prepare the app unit test with the local environment file. The test compile needs the gitignored environment file and the request library build. This step copies the committed local template and runs the existing prebuild. It does not deploy. --- .github/workflows/pr-validation.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index eb5ad4282..15a57ee5b 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -34,7 +34,7 @@ jobs: test: name: test runs-on: ubuntu-24.04 - timeout-minutes: 40 + timeout-minutes: 45 steps: - uses: actions/checkout@v4 @@ -45,5 +45,11 @@ jobs: - name: Install dependencies run: npm ci --ignore-scripts + - name: Prepare local test inputs + run: | + set -euo pipefail + test -f projects/v3/src/environments/environment.ts || cp projects/v3/src/environments/environment.local.ts projects/v3/src/environments/environment.ts + npm run prebuildv3 + - name: Unit tests run: npm test