-
Notifications
You must be signed in to change notification settings - Fork 146
59 lines (49 loc) · 1.53 KB
/
common_js.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
name: Common JS
on:
push:
branches:
- main
- develop
- release/*
pull_request:
branches:
- main
- develop
- release/*
jobs:
test-integration-node:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18"]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: pnpm/[email protected]
with:
version: 7.6.0
- name: Build @hashgraph/sdk
run: task build
- name: Install dependencies
working-directory: common_js_test
run: task install
- name: Test
working-directory: common_js_test
run: task test