From 87e38c3e9780df2ee231509f6af2f1242e649e1f Mon Sep 17 00:00:00 2001 From: Dennis Wayo <117969019+DennisWayo@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:08:02 +0500 Subject: [PATCH 1/2] Validate site changes in pull requests --- .github/workflows/validate.yml | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..e033d35 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,45 @@ +name: Validate site + +on: + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: validate-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: site + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: | + site/package-lock.json + site/studio/lidmas/package-lock.json + + - name: Install site dependencies + run: npm ci + + - name: Install Studio dependencies + run: npm --prefix studio/lidmas ci + + - name: Test benchmark summary + run: npm run test:summary + + - name: Build and check performance budgets + run: npm run build:public-api From 14b7827f05b2cd31b988d48e2afc48a4a9baa58b Mon Sep 17 00:00:00 2001 From: Dennis Wayo <117969019+DennisWayo@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:10:22 +0500 Subject: [PATCH 2/2] Use Node 24 GitHub actions --- .github/workflows/pages.yml | 4 ++-- .github/workflows/validate.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 9880851..021c287 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -23,10 +23,10 @@ jobs: working-directory: site steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: 22 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index e033d35..2d57b57 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -21,10 +21,10 @@ jobs: working-directory: site steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: 22 cache: npm