chore: initial public release (v1.0.0) #2
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| contracts: | |
| name: Contracts (compile, test, gates) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install | |
| run: npm ci | |
| - name: Compile | |
| run: npm run compile | |
| - name: Test | |
| run: npm test | |
| - name: Selector collision check | |
| run: node scripts/selector-collision-check.js | |
| - name: Manifest ↔ ABI parity | |
| run: node scripts/check-manifest-abi-parity.js | |
| - name: Storage layout gate | |
| run: node scripts/check-storage-layout.js | |
| - name: Contract size gate | |
| run: node scripts/check-contract-size.js | |
| secrets: | |
| name: Secret scan (gitleaks) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read # gitleaks-action lists PR commits via the API to scope the scan | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: gitleaks | |
| uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| # gitleaks-action v2 requires GITHUB_TOKEN to scan pull_request events. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITLEAKS_CONFIG: .gitleaks.toml | |
| # No PR comments (avoids needing pull-requests: write); the run status is enough. | |
| GITLEAKS_ENABLE_COMMENTS: "false" |