-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (65 loc) · 2.09 KB
/
testing-node.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
name: Testing w/ Nevermined Node depending on SDK changes
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v3
with:
repository: nevermined-io/node
path: node
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: nevermined-io/nvm-tools-actions@v0.13.0
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
frost: 'true'
contracts-version: 'v3.2.2.004'
frost-version: 'v3.2.2.004'
node: 'false'
- name: Install dependencies
run: yarn
- name: Build SDK-DTP package and node
run: |
yarn build
cd ./node
yarn add ../
yarn run setup:dev
yarn build
- name: Run node
env:
WEB3_PROVIDER_URL: http://contracts.nevermined.localnet
# estuary token for local development
ESTUARY_TOKEN: ESTaa43688b-4ccf-4dad-8a16-410e488706ffARY
ESTUARY_ENDPOINT: http://estuary.nevermined.localnet
NO_GRAPH: true
run: |
cd node
nvm-tools copy-artifacts ./artifacts
nvm-tools copy-circuits ./circuits
yarn start 2>&1 | tee node_log.txt &
- name: Run integration tests
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
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 }}
NEVERMINED_NODE_URI: http://localhost:8030
NO_GRAPH: true
NETWORK_NAME: testing
run: |
nvm-tools copy-artifacts ./artifacts
nvm-tools copy-circuits ./circuits
yarn test
- name: Upload node logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: node-output
path: node/node_log.txt