-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.72 KB
/
testing.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
name: Testing
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Reclaim some disk space
run: docker system prune --all --volumes -f
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
yarn
- name: Run linters
run: yarn lint
- uses: nevermined-io/[email protected]
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
contracts-version: 'v3.5.7'
node-version: 'latest'
- name: Check artifacts and circuits
run: |
nvm-tools copy-artifacts /tmp/.nevermined/artifacts
ls -l /tmp/.nevermined/artifacts/ready
nvm-tools copy-circuits /tmp/.nevermined/circuits
ls -l /tmp/.nevermined/circuits/keytransfer.wasm
- name: Build
run: |
yarn build
yarn start --help
- name: Run integration tests
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }}
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
LOCAL_CONF_DIR: '/tmp/.nevermined'
TOKEN_ADDRESS: '0x0000000000000000000000000000000000000000'
WEB3_PROVIDER_URL: 'http://contracts.nevermined.localnet'
NETWORK: 'geth-localnet'
run: |
yarn test:integration
- name: Upload logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: nevermined-tools-output
path: tools/nevermined_tools.txt