-
Notifications
You must be signed in to change notification settings - Fork 7
91 lines (71 loc) · 2.52 KB
/
tests.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
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
name: Integration Tests
on:
workflow_dispatch:
pull_request:
jobs:
server-ganache:
name: server over Ganache integration tests
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
- name: Install make
run: sudo apt-get update; sudo apt-get install build-essential -y
- name: Apply Sourcify server patch customizations
run: npm run server:patch
- name: Compile Sourcify server
working-directory: ./sourcify
run: |
npm ci
npm run build:lerna
- name: Install clean npm instance
run: npm ci
- name: Run npm test server
run: npm run test:server
server-local-node:
name: server over Hedera's local node integration tests
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
- name: Install make
run: sudo apt-get update; sudo apt-get install build-essential -y
- name: Apply Sourcify server patch customizations
run: npm run server:patch
- name: Install npm dependencies
run: npm ci
- name: Start Hedera Local Node
run: npm run local-node:start
- name: Start Sourcify server
working-directory: ./sourcify
run: |
npm ci
npm run build:lerna
cp ../test/sourcify-chains.json ./services/server/dist/
(npm run server:start&)
- name: Wait for hedera-sourcify server
uses: iFaxity/wait-on-action@a7d13170ec542bdca4ef8ac4b15e9c6aa00a6866 # v1.2.1
with:
resource: http://127.0.0.1:5555/chains
- name: Start tests
run: npm run test:hedera