Files
3031023-xyz-public/.gitea/workflows/cms-content-validation.yml
T

37 lines
1.1 KiB
YAML

name: CMS content validation
on:
pull_request:
branches: [main]
jobs:
validate:
name: cms-content-validation
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
env:
ASTRO_TELEMETRY_DISABLED: '1'
steps:
- name: Checkout source
uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Use Node 22
uses: https://github.com/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- name: Install locked dependencies
run: npm ci --prefer-offline --no-audit --no-fund
- name: Verify Decap configuration and content boundaries
run: npm run verify:cms
- name: Build primary site
run: SITE_KEY=www npm run build:site
- name: Verify primary site
run: SITE_KEY=www npm run verify:build
- name: Build blog
run: SITE_KEY=blog npm run build:site
- name: Verify blog
run: SITE_KEY=blog npm run verify:build