-
Notifications
You must be signed in to change notification settings - Fork 122
87 lines (68 loc) · 1.81 KB
/
tests-ethlibs.yaml
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
name: Tests - DeFiCh/go-ethlibs
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
NODE_URL: "http://127.0.0.1:19551/"
jobs:
build:
runs-on: ubuntu-latest
container: defi/ain-builder:latest
steps:
- uses: actions/checkout@v3
- name: Populate environment
run: ./make.sh ci-export-vars
- name: Setup dependencies
run: ./make.sh ci-setup-deps
- name: Setup dependencies for target
run: ./make.sh ci-setup-deps-target
- name: Install dependencies for test
run: ./make.sh ci-setup-deps-test
- name: Build binaries
run: ./make.sh build
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: defibins
path: |
build/src/defid
build/src/defi-cli
- name: Upload shell commands
uses: actions/upload-artifact@v3
with:
name: sync
path: ci/ethlibs_test/main.sh
node-rpc-tests:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download binaries
uses: actions/download-artifact@v3
with:
name: defibins
- name: Download shell commands
uses: actions/download-artifact@v3
with:
name: sync
- name: Setup permissions
run: chmod uog+x ./defid ./defi-cli ./main.sh
- name: Setup test fixtures
run: ./main.sh
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '^1.17.0'
- name: Setup go-ethlibs test suites
uses: actions/checkout@v3
with:
repository: 'DeFiCh/go-ethlibs'
- name: Run EVM RPC tests
run: go test -v ./node/rpc_meta_test.go