-
-
Notifications
You must be signed in to change notification settings - Fork 46
64 lines (64 loc) · 1.81 KB
/
test-js.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test
on: pull_request
jobs:
test-node:
runs-on: ubuntu-latest
name: "${{ matrix.os }} node:${{ matrix.node }}"
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node: ["18", "20", "22"]
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: yarn.lock
- name: Install latest Rust nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-10-28
components: rustfmt, clippy
- name: Check yarn version
run: yarn --version
- name: Install Node Dependencies
run: yarn install
- name: Build Binary
run: yarn build:debug
- name: Run Linting
run: yarn lint:ts
- name: Run Tests
run: yarn test
- name: Build JS
run: yarn build:ts
test-bun:
runs-on: ubuntu-latest
name: "${{ matrix.os }} bun:${{ matrix.bun }}"
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
bun: ["1"]
steps:
- uses: actions/checkout@v4
- name: Install latest Rust nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-10-28
components: rustfmt, clippy
- name: Bun version
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Bun Install Dependencies
run: bun install
- name: Bun Build Binary
run: bun run build:debug
- name: Bun Run Linting
run: bun lint:ts
- name: Bun Run Tests
run: bun run test
- name: Bun Build JS
run: bun run build:ts