Skip to content

fix: more tests

fix: more tests #205

Workflow file for this run

name: Core tests
on:
push:
branches:
- "master"
- "feat/tests"
- "feat/rc3"
- "feat/rc2"
- "feat/rc1"
- "feat/next-vote"
- "feat/dec-votes"
schedule:
- cron: "0 0 * * TUE"
jobs:
run-tests:

Check failure on line 17 in .github/workflows/core_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/core_tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
name: All
runs-on: "ubuntu-latest"
timeout-minutes: 120
: # TODO remove after dec votes
strategy:
matrix:
sequence:
- "v1_v2_dg1_dg2"
- "v1_v2_dg2_dg1"
- "v1_dg1_v2_dg2"
- "v2_v1_dg1_dg2"
- "v2_v1_dg2_dg1"
- "v2_dg2_v1_dg1"
services:
tests-runner:
image: ghcr.io/lidofinance/scripts:v21
ports:
- 8545:8545
volumes:
- ${{ github.workspace }}:/root/scripts
options: >-
--name=tests-runner
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run init script
run: docker exec -e CORE_BRANCH tests-runner bash -c 'make init'
env:
CORE_BRANCH: develop
- name: Run node
run: docker exec -e ETH_RPC_URL --detach tests-runner bash -c 'NODE_PORT=8545 make node'
env:
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }}
- name: Check that the fork is ready
shell: bash
run: |
echo "Waiting for fork node on 127.0.0.1:8545..."
sleep 10
for i in {1..30}; do
if (echo > /dev/tcp/127.0.0.1/8545) >/dev/null 2>&1; then
echo "Fork is ready ✅"
exit 0
fi
echo "Not ready yet... ($i/30)"
sleep 1
done
echo "❌ Fork was not ready after 30 seconds" >&2
exit 1
- name: Prepare test environment with Brownie
run: docker exec -e ACTION_SEQUENCE -e GITHUB_TOKEN -e ETH_RPC_URL -e ETHERSCAN_TOKEN tests-runner bash -c 'make ci-prepare-environment'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ETHERSCAN_TOKEN: ${{ secrets.ETHERSCAN_TOKEN }}
ACTION_SEQUENCE: ${{ matrix.sequence }}
- name: Run core tests
run: docker exec -e CORE_TESTS_TARGET_RPC_URL tests-runner bash -c 'make test-core'
env:
CORE_TESTS_TARGET_RPC_URL: http://127.0.0.1:8545