-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1002 Bytes
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
fmt-lint-check:
name: "Format / Lint / Type Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- run: deno fmt --check
- run: deno lint
- run: deno check --doc .
deno-unit:
name: "Unit Test (Deno)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- run: deno task test:unit
node-unit:
name: "Unit Test (Node.js)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- uses: actions/setup-node@v4
with:
node-version: ">=20"
- run: deno task build:npm:unit