Add preview-only Decap CMS pilot
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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@v4
|
||||
- name: Use Node 22
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
- name: Install locked dependencies
|
||||
run: npm ci
|
||||
- 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
|
||||
Reference in New Issue
Block a user