chore: formalize governance and release lifecycle #46
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 22.13 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.13.0 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Diff whitespace check | |
| run: git diff --check | |
| - name: Run tests | |
| run: npm test | |
| - name: Package metadata sanity | |
| run: | | |
| node -e "const p=require('./package.json'); if(!p.version) process.exit(1); if(p.license!=='MIT') process.exit(1); console.log('version', p.version)" | |
| test -f LICENSE | |
| test -f CHANGELOG.md | |
| test -f docs/release-checklist.md | |
| test -f docs/release-lifecycle.md | |
| test -f docs/GOVERNANCE.md |