feat: ADF metrics recalibration, CI hardening, and release workflow #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Governance Scorecard | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| scorecard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build | |
| - name: Generate Charter JSON outputs | |
| shell: bash | |
| run: | | |
| mkdir -p governance | |
| node packages/cli/dist/bin.js validate --ci --format json > governance/validate.json || true | |
| node packages/cli/dist/bin.js drift --ci --format json > governance/drift.json || true | |
| node packages/cli/dist/bin.js adf evidence --auto-measure --ci --format json > governance/evidence.json || true | |
| - name: Build governance scorecard | |
| run: node scripts/generate-scorecard.mjs --repo digitalcsa-kit --source https://github.com/Stackbilt-dev/charter | |
| - name: Validate governance scorecard shape | |
| run: node scripts/validate-scorecard.mjs --file governance/scorecard.json | |
| - name: Upload scorecard artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: governance-scorecard | |
| path: governance/scorecard.json |