-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 1.43 KB
/
test-e2e.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
name: e2e-test
on:
pull_request:
jobs:
test-e2e:
name: test-e2e
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Set up Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v2
- name: Cache go modules
uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-e2e-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-e2e-
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: |
${{ github.workspace }}/onchain-module/node_modules
key: ${{ runner.os }}-e2e-${{ hashFiles('onchain-module/tests/e2e/contracts/package-lock.json') }}
restore-keys: |
${{ runner.os }}-e2e-
- name: Build relayer
working-directory: relayer
run: make build
- name: Run docker-compose
run: make network
- name: Download NPM dependency
working-directory: onchain-module
run: |
npm install
- name: Migrate Contracts
working-directory: onchain-module
run: |
make migrate-e2e
- name: Run E2E Test
run: |
make e2e-test