-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 901 Bytes
/
Copy pathci.yaml
File metadata and controls
46 lines (36 loc) · 901 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
41
42
43
44
45
46
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-check:
name: Build Check (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.7.5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Verify Node.js
shell: bash
run: node --version
- name: Format check
shell: bash
run: deno fmt --check src/
- name: Lint
run: deno lint src/
- name: Type check
run: deno check src/index.ts
- name: Test
run: deno test --allow-read --allow-env --allow-run