ci: run native OpenSpec and local link validation in verify (WealthLedger/specs#2)
This commit is contained in:
@@ -34,3 +34,20 @@ jobs:
|
||||
fi
|
||||
echo "Checked revision: $(git rev-parse HEAD); range: $range"
|
||||
git diff --check "$range"
|
||||
- uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
- name: Install pinned OpenSpec CLI and lychee 0.24.2
|
||||
run: |
|
||||
npm install -g "@fission-ai/openspec@$(cat openspec/.cli-version)"
|
||||
openspec store register .
|
||||
curl --fail --location --silent --show-error https://github.com/lycheeverse/lychee/releases/download/lychee-v0.24.2/lychee-x86_64-unknown-linux-gnu.tar.gz -o /tmp/lychee.tar.gz
|
||||
echo '1f4e0ef7f6554a6ed33dd7ac144fb2e1bbed98598e7af973042fc5cd43951c9a /tmp/lychee.tar.gz' | sha256sum --check
|
||||
tar -xzf /tmp/lychee.tar.gz -C /tmp
|
||||
echo /tmp/lychee-x86_64-unknown-linux-gnu >> "$GITHUB_PATH"
|
||||
env:
|
||||
OPENSPEC_TELEMETRY: '0'
|
||||
- name: Validate schemas, specs, changes and local links
|
||||
run: npm run validate
|
||||
env:
|
||||
OPENSPEC_TELEMETRY: '0'
|
||||
|
||||
Reference in New Issue
Block a user