-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.16 KB
/
Copy pathci.yml
File metadata and controls
51 lines (48 loc) · 1.16 KB
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
47
48
49
50
51
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
bun:
name: bun (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- name: Typecheck
run: bun run typecheck
- name: Test
run: bun test test/
- name: Build
run: bun run build
node:
name: node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ["22.x", "24.x"]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: bun install --frozen-lockfile
- name: Test
run: npm test
- name: Build and smoke-test the bin
run: |
bun run build
node bin/nmaptui.mjs --version
node bin/nmaptui.mjs --help > /dev/null