Skip to content

feat(crg): add crg-grade and crg-badge justfile recipes #119

feat(crg): add crg-grade and crg-badge justfile recipes

feat(crg): add crg-grade and crg-badge justfile recipes #119

# SPDX-License-Identifier: MPL-2.0-or-later
name: ReScript/Deno CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.1.1
- uses: denoland/setup-deno@9db7efd2d8d10d73081f64624f472263a3d12f20 # v1.1.4
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
permissions:
contents: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.1.1
- uses: denoland/setup-deno@9db7efd2d8d10d73081f64624f472263a3d12f20 # v1.1.4
- name: Check permissions
run: |
# Audit for dangerous permissions
grep -rE "allow-run|allow-write|allow-env" . || echo "No dangerous permissions"