-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.03 KB
/
build.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
name: Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/nvm-tools-actions@v0.15.0
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
contracts-version: "v3.2.2"
- name: Install dependencies
run: yarn
- name: Run graph-node
run: |
docker compose up -d
./scripts/wait_for_graph.sh
- name: copy-artifacts
run: nvm-tools copy-artifacts ./artifacts
- name: Test update network
run: yarn graph:update-network geth-localnet
- name: Test create
run: yarn graph:create-local development geth-localnet v3
- name: Test deploy
run: yarn graph:deploy-local development geth-localnet v3
- name: Unit tests
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
run: yarn test