diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..371a0528 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +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: 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 + BASE_URL: /endusers/