-
Notifications
You must be signed in to change notification settings - Fork 1
188 lines (164 loc) Β· 4.97 KB
/
testing-nightly.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: Tests Nightly
on:
schedule:
- cron: '30 5 * * *'
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
yarn
- name: Run linters
run: yarn lint
- name: Start ganache
run: yarn ganache --port 18545 --chain.chainId 8998 &
- uses: actions/checkout@v3
with:
repository: nevermined-io/contracts
ref: 'main'
path: contracts
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Deploy contracts
run: |
cd contracts
yarn
export TESTNET=true
export NETWORK=external
./scripts/build-circuit.sh
yarn deploy
mv artifacts ..
mv circuits ..
cd ..
rm -rf contracts
- name: Run unit tests
env:
ETH_PORT: 18545
run: |
yarn run test:cover
subgraph-integration:
runs-on: ubuntu-latest
if: ${{ false }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/[email protected]
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.2.1'
node-version: 'v1.2.16'
- name: Install dependencies
run: |
yarn
- name: Check artifacts
run: |
nvm-tools copy-artifacts ./artifacts
ls -l artifacts
- name: Run subgraph integration tests
env:
SEED_WORDS: ${{ secrets.seedWords }}
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }}
run: |
export GRAPH_DELAY=true
npm run integration:subgraph
- name: Run compute integration tests
env:
SEED_WORDS: ${{ secrets.seedWords }}
NEVERMINED_NODE_URI: http://node.nevermined.localnet
WEB3_PROVIDER_URL: http://contracts.nevermined.localnet
run: |
yarn run integration:compute
compute-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/[email protected]
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.2.1'
node-version: 'v1.2.9'
- name: Install dependencies
run: |
yarn
- name: Check artifacts
run: |
nvm-tools copy-artifacts ./artifacts
ls -l artifacts
- name: Run compute integration tests
env:
SEED_WORDS: ${{ secrets.seedWords }}
NEVERMINED_NODE_URI: http://node.nevermined.localnet
WEB3_PROVIDER_URL: http://contracts.nevermined.localnet
run: |
yarn run integration:compute
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/[email protected]
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.2.1'
node-version: 'v1.2.9'
- name: Install dependencies
run: |
yarn
- name: Check artifacts
run: |
nvm-tools copy-artifacts ./artifacts
ls -l artifacts
- name: Run integration tests
env:
SEED_WORDS: ${{ secrets.seedWords }}
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }}
IPFS_GATEWAY: https://ipfs.infura.io:5001
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
LOG_LEVEL: 1 # If LOG_LEVEL is >1 it will print the logger.debug calls
run: yarn run integration:cover
mumbai-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
yarn
- name: Download artifacts
run: |
mkdir -p node_modules/@nevermined-io/contracts/artifacts
yarn artifacts:download v3.2.1 mumbai public
ls -l node_modules/@nevermined-io/contracts/artifacts
- name: Run nightly tests
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC_NIGHTLY }}
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }}
IPFS_GATEWAY: https://ipfs.infura.io:5001
GRAPH_DELAY: 'true'
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
run: |
yarn integration:e2e:mumbai