mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-10 08:08:16 -05:00
* Enable debug logging for e2e tests * Reduce the duration of lightclient test * Run all e2e tests with minimal preset * Fix the few e2e tests * Fix test job names * Fix the task script * Add yarn cache to node actions * Update few e2e tests after code review * Fix the type export to use with transpilation * Remove unused file * Revert changes to an e2e test file * Reduce the genesis delay * Refactor workflow jobs * Add .git-data to build cache * Fix spec tests option * Upgrade the github action version * Add a package dev dependency * Add artifact name * Update the workflow to add env variables * Update the workflow to add env variables * Add tsnode option * Parallelize the spec tests * Add the ts-node configuration * Update tsconfig for the e2e tests * Update the tsconfig for the project * Fix the types issue * Remove unused file
82 lines
2.5 KiB
YAML
82 lines
2.5 KiB
YAML
name: Sim tests
|
|
|
|
concurrency:
|
|
# If PR, cancel prev commits. head_ref = source branch name on pull_request, null if push
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
# We intentionally don't run push on feature branches. See PR for rational.
|
|
branches: [unstable, stable]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
inputs:
|
|
debug:
|
|
description: Runtime DEBUG value
|
|
required: false
|
|
default: ""
|
|
|
|
env:
|
|
GETH_DOCKER_IMAGE: ethereum/client-go:v1.11.6
|
|
LIGHTHOUSE_DOCKER_IMAGE: sigp/lighthouse:latest-amd64-modern-dev
|
|
NETHERMIND_DOCKER_IMAGE: nethermind/nethermind:1.18.0
|
|
|
|
jobs:
|
|
tests-sim:
|
|
name: Sim tests
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
|
steps:
|
|
# <common-build> - Uses YAML anchors in the future
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
check-latest: true
|
|
cache: yarn
|
|
- name: Node.js version
|
|
id: node
|
|
run: echo "v8CppApiVersion=$(node --print "process.versions.modules")" >> $GITHUB_OUTPUT
|
|
- name: Restore dependencies
|
|
uses: actions/cache@master
|
|
id: cache-deps
|
|
with:
|
|
path: |
|
|
node_modules
|
|
packages/*/node_modules
|
|
key: ${{ runner.os }}-${{ steps.node.outputs.v8CppApiVersion }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
|
|
- name: Install & build
|
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
run: yarn install --frozen-lockfile && yarn build
|
|
- name: Build
|
|
run: yarn build
|
|
if: steps.cache-deps.outputs.cache-hit == 'true'
|
|
# </common-build>
|
|
|
|
- name: Sim tests multifork
|
|
run: DEBUG='${{github.event.inputs.debug}}' yarn test:sim:multifork
|
|
working-directory: packages/cli
|
|
|
|
- name: Sim tests endpoints
|
|
run: yarn test:sim:endpoints
|
|
working-directory: packages/cli
|
|
|
|
- name: Sim tests deneb
|
|
run: yarn test:sim:deneb
|
|
working-directory: packages/cli
|
|
|
|
- name: Sim tests backup eth provider
|
|
run: yarn test:sim:backup_eth_provider
|
|
working-directory: packages/cli
|
|
|
|
- name: Sim tests mixed client
|
|
run: DEBUG='${{github.event.inputs.debug}}' yarn test:sim:mixedclient
|
|
working-directory: packages/cli
|
|
|
|
- name: Upload debug log test files for "packages/cli"
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: debug-test-logs-cli
|
|
path: packages/cli/test-logs
|