-
Notifications
You must be signed in to change notification settings - Fork 5
104 lines (91 loc) · 2.25 KB
/
transport-node-test.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: test transport-node with local modules
on:
push:
tags:
- '*'
branches:
- '*'
pull_request:
branches: [main]
types: [opened]
jobs:
test:
strategy:
matrix:
deno-version: [ 1.45.x ]
node-version: [ 22.x ]
name: test node transport with local dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
steps:
- name: Git Checkout Deno Module
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install nats-server
uses: aricart/[email protected]
with:
repo: nats-io/nats-server
name: nats-server
cache: true
- name: Build NPM core bundle
working-directory: core
env:
CI: true
run: |
npm ci
npm run prepack
npm link
- name: Build NPM jetstream bundle
working-directory: jetstream
env:
CI: true
run: |
npm ci
npm run prepack
npm link
- name: Build NPM kv bundle
working-directory: kv
env:
CI: true
run: |
npm ci
npm run prepack
npm link
- name: Build NPM obj bundle
working-directory: obj
env:
CI: true
run: |
npm ci
npm run prepack
npm link
- name: Build NPM services bundle
working-directory: services
env:
CI: true
run: |
npm ci
npm run prepack
npm link
- name: Test Node Transport with local dependencies
working-directory: transport-node
env:
CI: true
run: |
npm ci
npm run prepack
npm link @nats-io/nats-core
npm link @nats-io/jetstream
npm link @nats-io/kv
npm link @nats-io/obj
npm link @nats-io/services
npm test