44 lines
996 B
YAML
44 lines
996 B
YAML
name: validate
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Validate job specs
|
|
run: npm run validate
|
|
|
|
- name: Run script tests
|
|
run: npm test
|
|
|
|
- name: Render example prompt
|
|
run: npm run render -- jobs/openclaw/inbox/cluster-example.md --mode plan > /tmp/projectclownfish-prompt.md
|
|
|
|
- name: Dry-run worker
|
|
run: npm run worker -- jobs/openclaw/inbox/cluster-example.md --mode plan --dry-run
|
|
|
|
- name: Build offline autonomous artifact
|
|
run: npm run build-fix-artifact -- jobs/openclaw/inbox/autonomous-example.md --offline
|
|
|
|
- name: Check scripts
|
|
run: |
|
|
for f in scripts/*.mjs; do
|
|
node --check "$f"
|
|
done
|