Skip to content

docs: add PPL language reference with data-grounded examples #84

docs: add PPL language reference with data-grounded examples

docs: add PPL language reference with data-grounded examples #84

name: Docs PR Preview
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'docs/**'
permissions:
pull-requests: write
defaults:
run:
working-directory: ./docs
jobs:
preview:
name: Build Preview
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: docs/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Run tests
run: npm test
- name: Comment PR
if: github.event.pull_request.head.repo.full_name == github.repository
continue-on-error: true
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✅ Docs preview build completed successfully! All tests passed.'
})