-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (46 loc) · 1.4 KB
/
it.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
name: Integration Test
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.18.6'
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: build devnet docker images
run: ./build-docker-images.sh "devnet" "latest"
- name: docker system prune
run: docker system prune -f
- name: start docker images
working-directory: ./docker
run: MONGO_USER=root MONGO_PASSWORD=root docker compose up -d
- name: wait until contracts are deployed
working-directory: ./docker
run: ./wait-until-services-up.sh
- name: build clients
working-directory: ./clients/js
run: npm install && npm run build
- name: run integration test
working-directory: ./integration_test
run: npm install && npm run it
- name: run relayer integration test
working-directory: ./relayer-engine
run: |
npm install && npm run build
npm run start:devnet &
sleep 5 && npm run test
- name: Collect Docker Logs
if: success() || failure()
uses: jwalton/[email protected]
# Next publish docker images after integration tests pass