-
Notifications
You must be signed in to change notification settings - Fork 37
169 lines (166 loc) · 4.48 KB
/
validate.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
---
name: validate
on:
push:
branches:
- main
- brubeck
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: build-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
uses: ./.github/workflows/reusable/cached-build
lint:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build (cached)
uses: ./.github/workflows/reusable/cached-build
- run: npm run eslint
- run: npm run versions
test-utils:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: test-utils
utils:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: utils
command: |
npm run test
xvfb-run --auto-servernum npm run test-browser
cdn-location:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: cdn-location
geoip-location:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: geoip-location
proto-rpc:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: proto-rpc
command: |
npm run test
xvfb-run --auto-servernum npm run test-browser
dht:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: dht
dht-browser:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: dht
command: |
sudo apt-get install xvfb
xvfb-run --auto-servernum npm run test-browser
trackerless-network:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: trackerless-network
command: |
npm run test-unit
npm run test-integration
npm run test-end-to-end
trackerless-network-browser:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: trackerless-network
command: |
sudo apt-get install xvfb
xvfb-run --auto-servernum npm run test-browser
autocertifier-server:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: autocertifier-server
sdk:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: sdk
command: |
npm run test-unit
npm run test-integration
sdk-e2e:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: sdk
docker-services: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain
run-entry-point: true
run-nodes: true
command: npm run test-end-to-end
node:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: node
command: npm run test-unit
node-e2e:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: node
docker-services: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain
run-entry-point: true
command: npm run test-integration
sdk-browser:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: sdk
command: |
sudo apt-get install xvfb
xvfb-run --auto-servernum npm run test-browser-unit
xvfb-run --auto-servernum npm run test-browser-integration
sdk-browser-e2e:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: sdk
extra-log-prefix: '-browser'
docker-services: init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain
run-entry-point: true
run-nodes: true
command: |
sudo apt-get install xvfb
xvfb-run --auto-servernum npm run test-browser-end-to-end
npm run test-browser-smoke
cli-tools:
needs: build
uses: ./.github/workflows/test-setup.yml
with:
package: cli-tools
docker-services: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain
run-entry-point: true
run-nodes: true
command: npm run test
node-docker-image:
uses: ./.github/workflows/docker-build.yml
with:
docker_file: Dockerfile.node
image_name: streamr/node
test_services_to_start: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain broker-node-storage-1 entry-point
build_platforms: linux/amd64
test_script: bash ./.github/healthcheck.sh http://localhost:8891/info streamr-dev-broker-node-storage-1