chore: Add comprehensive quality gates (RSR) #1
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: ReScript/Deno CI | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v1 | |
| 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: 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 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v1 | |
| - name: Check permissions | |
| run: | | |
| # Audit for dangerous permissions | |
| grep -rE "allow-run|allow-write|allow-env" . || echo "No dangerous permissions" |