-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 978 Bytes
/
rescript-deno-ci.yml
File metadata and controls
40 lines (33 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: ReScript/Deno CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: denoland/setup-deno@v2
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@v6
- uses: denoland/setup-deno@v2
- name: Check permissions
run: |
# Audit for dangerous permissions
grep -rE "allow-run|allow-write|allow-env" . || echo "No dangerous permissions"