Repository navigation
ci(hypatia): standardise the wrapper caller id to the canonical `hypa… #393
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
| # This workflow is managed by gh actions-lock. | |
| # SPDX-License-Identifier: MPL-2.0 | |
| # This workflow is managed by gh actions-lock. | |
| # This workflow is managed by gh actions-lock. | |
| permissions: | |
| actions: read | |
| contents: read | |
| name: AffineScript/Deno CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| # Estate guardrail: scope push to default branches so a PR fires once (not | |
| # push+PR), and cancel superseded runs. Safe — read-only PR-triggered check. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: denoland/setup-deno@v2.0.5 | |
| with: | |
| deno-version: v1.x | |
| - name: Deno lint | |
| run: deno lint | |
| - name: Deno fmt check | |
| run: deno fmt --check | |
| - name: Deno test | |
| run: deno test --allow-all --coverage=coverage | |
| - name: AffineScript build | |
| run: | | |
| if [ -f "affinescript.json" ] || [ -f "bsconfig.json" ]; then | |
| npm install | |
| npx affinescript | |
| fi | |
| - name: Type check | |
| run: deno check **/*.ts || true | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: denoland/setup-deno@v2.0.5 | |
| - name: Check permissions | |
| run: | | |
| # Audit for dangerous permissions | |
| grep -rE "allow-run|allow-write|allow-env" . || echo "No dangerous permissions" |