Fix flaky SafeEthClient
tests (#208)
#824
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |