mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
97abc8b775
Manually lands renovate PR #953 (gh token lacks workflow scope for API merge). node-check passed on the PR with node 24.
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: workflow-scripts-syntax
|
|
|
|
# S7: durable regression gate for the Claude Code Workflow-tool scripts under
|
|
# .claude/workflows/. These are plain JS run by the harness; `node --check`
|
|
# catches syntax breakage that would otherwise only surface at invocation time.
|
|
# Isolated from validate.yml on purpose (no shared job registry to drift).
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.claude/workflows/*.js'
|
|
- '.github/workflows/workflow-scripts-syntax.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
node-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: '24'
|
|
- name: node --check every workflow script
|
|
run: |
|
|
set -euo pipefail
|
|
shopt -s nullglob
|
|
files=(.claude/workflows/*.js)
|
|
if [ ${#files[@]} -eq 0 ]; then
|
|
echo "No workflow scripts to check."
|
|
exit 0
|
|
fi
|
|
for f in "${files[@]}"; do
|
|
echo "checking $f"
|
|
node --check "$f"
|
|
done
|
|
echo "All ${#files[@]} workflow script(s) parse cleanly."
|