Skip to content

chore(clade): backfill [status] lifecycle block #379

chore(clade): backfill [status] lifecycle block

chore(clade): backfill [status] lifecycle block #379

# SPDX-License-Identifier: MPL-2.0
name: ReScript/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
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
with:
deno-version: v1.x
- name: Deno lint
run: deno task lint
- name: Deno fmt check
run: deno task fmt:check
- name: Deno test
run: deno test --allow-all --coverage=coverage
- name: ReScript build
run: |
if [ -f "rescript.json" ] || [ -f "bsconfig.json" ]; then
npm install
npx rescript
fi
- name: Type check
run: deno check **/*.ts || true
security:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
- name: Check permissions
run: |
# Audit for dangerous permissions
grep -rE "allow-run|allow-write|allow-env" . || echo "No dangerous permissions"