-
Notifications
You must be signed in to change notification settings - Fork 5
79 lines (63 loc) · 1.85 KB
/
integration-tests.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: integration-tests
on:
push:
branches:
- main
pull_request:
jobs:
Test:
name: Integration Test
runs-on: ubuntu-latest
timeout-minutes: 70
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build indexer container
uses: docker/build-push-action@v5
with:
load: true
context: .
file: ./indexer/Dockerfile
tags: near-sffl-indexer
cache-from: type=gha,scope=indexer
cache-to: type=gha,mode=max,scope=indexer
- name: Build relayer container
uses: docker/build-push-action@v5
with:
load: true
context: .
file: ./relayer/cmd/Dockerfile
tags: near-sffl-test-relayer
cache-from: type=gha,scope=relayer
cache-to: type=gha,mode=max,scope=relayer
- name: Build plugin container
uses: docker/build-push-action@v5
with:
load: true
context: .
file: ./plugin/cmd/Dockerfile
tags: near-sffl-operator-plugin
cache-from: type=gha,scope=plugin
cache-to: type=gha,mode=max,scope=plugin
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install npm dependencies
run: npm ci
working-directory: ./contracts/evm
- name: Install near-cli
run: npm i -g [email protected]
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install forge dependencies
run: forge install
working-directory: ./contracts/evm
- name: Test
run: make tests-integration