-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (46 loc) · 1.27 KB
/
local_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
name: Local chain tests
on:
push:
branches: [ main ]
pull_request:
jobs:
tests:
strategy:
fail-fast: true
runs-on: ubuntu-latest
name: Build and Test
steps:
- uses: actions/checkout@v4
name: Check out repository
with:
submodules: recursive
- uses: actions/setup-node@v2
name: Set up Node.js
with:
node-version: "lts/hydrogen"
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: pip
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Start Docker Compose
run: docker compose up -d
working-directory: ./packages/tap-v1/tests
- name: Checking graph-node availability
uses: nick-fields/retry@v2
with:
max_attempts: 3
retry_on: error
timeout_seconds: 5
command: nc -zv 127.0.0.1 8030
- name: Installing python requirements
run: pip install -r requirements.txt
working-directory: ./packages/tap-v1/tests
- run: |
yarn
./contract_init.sh
name: Build and Test
working-directory: ./packages/tap-v1/tests