-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (57 loc) · 1.45 KB
/
Copy pathci-node.yml
File metadata and controls
61 lines (57 loc) · 1.45 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
52
53
54
55
56
57
58
59
60
61
# Fast CI for the Node SDK: builds + runs tests on a single host
# triple per OS on every push/PR. The full cross-build matrix only
# runs on tag push (see publish-node.yml).
name: ci-node
on:
push:
branches: [main]
paths:
- 'crates/reflow_rt/**'
- 'crates/reflow_components/**'
- 'crates/reflow_network/**'
- 'crates/reflow_graph/**'
- 'crates/reflow_actor/**'
- 'crates/reflow_actor_macro/**'
- 'sdk/node/**'
- '.cargo/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ci-node.yml'
pull_request:
paths:
- 'sdk/node/**'
- '.cargo/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ci-node.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: dtolnay/rust-toolchain@stable
- uses: mozilla-actions/sccache-action@v0.0.5
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
sdk/node
- name: Install deps + build
working-directory: sdk/node
run: |
npm ci || npm install
npm run build
- name: Run tests
working-directory: sdk/node
run: npm test