refactor(ci): review fixes round 2 #41
Workflow file for this run
This file contains hidden or 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: Core tests | |
| on: | |
| push: | |
| branches-ignore: | |
| - "master" | |
| - "feat/tests" | |
| - "feat/rc3" | |
| - "feat/rc2" | |
| - "feat/rc1" | |
| - "feat/next-vote" | |
| schedule: | |
| - cron: "0 0 * * TUE" | |
| jobs: | |
| run-tests: | |
| name: Core repo tests in docker | |
| runs-on: "ubuntu-latest" | |
| timeout-minutes: 120 | |
| services: | |
| tests-runner: | |
| image: ghcr.io/lidofinance/scripts:v19 | |
| ports: | |
| - 9876:9876 | |
| volumes: | |
| - ${{ github.workspace }}:/root/scripts | |
| options: >- | |
| --name=tests-runner | |
| env: | |
| ETH_RPC_URL: "https://mainnet.infura.io/v3/${{ secrets.WEB3_INFURA_PROJECT_ID }}" | |
| 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 --detach tests-runner bash -c 'NODE_PORT=9876 make node' | |
| - name: Check that the fork is ready | |
| shell: bash | |
| run: timeout 30 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' 127.0.0.1 9876 | |
| - name: Prepare test environment with Brownie | |
| run: docker exec -e GITHUB_TOKEN -e ETH_RPC_URL tests-runner bash -c 'make ci-prepare-environment' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| ETH_RPC_URL: http://127.0.0.1:9876 | |
| - name: Run core tests | |
| run: docker exec -e FORK_RPC_URL tests-runner bash -c 'make test-core' | |
| env: | |
| FORK_RPC_URL: http://127.0.0.1:9876 |