Skip to content

Breaking change: Fix unrecognized units being parsed as list (1 + 1no… #178

Breaking change: Fix unrecognized units being parsed as list (1 + 1no…

Breaking change: Fix unrecognized units being parsed as list (1 + 1no… #178

name: Compliance Suite
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
compliance:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v4
- name: Checkout compliance suite
uses: actions/checkout@v4
with:
repository: tokens-studio/tokenscript-compliance-suite
path: tokenscript-compliance-suite
ref: 38ee5f15598a0f0de413ae446c2fc2e3645eac87
token: ${{ secrets.GH_PAT_STANDARD_COMPLIANCE }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build CLI
run: npm run build
- name: Run compliance suite
run: npm run compliance -- --test-dir ./tokenscript-compliance-suite/tests/ --output compliance-report.json
- name: Check compliance results
run: |
passed=$(jq -r '.passed' compliance-report.json)
failed=$(jq -r '.failed' compliance-report.json)
echo "✅ Passed: $passed"
echo "❌ Failed: $failed"
if [ "$failed" -gt 0 ]; then
echo "🚫 Compliance suite failures detected."
exit 1
fi