From f9d5faf889ef3986962d8444adb6db33274d696a Mon Sep 17 00:00:00 2001 From: Jorge Castro Date: Wed, 16 Sep 2026 12:10:19 -0400 Subject: [PATCH 1/2] ci: add required repository validation gate Signed-off-by: Jorge Castro Assisted-by: github-copilot/gpt-5.6-sol via pi --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..149d7483 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Validate repository + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + validate: + name: Validate repository + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + persist-credentials: false + - name: Set up Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version: 22 + cache: npm + - name: Install dependencies + run: npm ci + - name: Validate repository + run: npm test + env: + GH_TOKEN: ${{ github.token }} + SITE_URL: https://cncf.github.io + BASE_URL: /endusers/ From 236354379a4da7ad57dcf13a8b907ad2f9378f2d Mon Sep 17 00:00:00 2001 From: Jorge Castro Date: Wed, 16 Sep 2026 12:12:09 -0400 Subject: [PATCH 2/2] ci: validate unit tests and production build Signed-off-by: Jorge Castro Assisted-by: github-copilot/gpt-5.6-sol via pi --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 149d7483..371a0528 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,10 @@ jobs: cache: npm - name: Install dependencies run: npm ci - - name: Validate repository - run: npm test + - name: Run unit tests + run: npm run test:unit + - name: Build production site + run: npm run build:production env: GH_TOKEN: ${{ github.token }} SITE_URL: https://cncf.github.io