Files
lodestar/.github/workflows/test-sim-merge.yml
2022-02-07 09:57:26 -06:00

77 lines
2.7 KiB
YAML

name: Sim merge tests
on: [pull_request, push]
env:
GETH_COMMIT: dfa207dc45e23a14c7d70453d13b6828b2230e5a
NETHERMIND_COMMIT: 0aaa60c6b6143d83d5c8c2246426956b0c4abfa2
jobs:
sim-merge-tests:
name: Sim merge tests
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "lts/gallium"
- name: Node.js version
id: node
run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")"
- 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 --ignore-optional && yarn build
- name: Build
run: yarn build
if: steps.cache-deps.outputs.cache-hit == 'true'
# </common-build>
#Install Geth merge interop
- uses: actions/setup-go@v2
- name: Clone Geth merge interop branch
run: git clone -b merge-kintsugi https://github.com/g11tech/go-ethereum.git && cd go-ethereum && git reset --hard $GETH_COMMIT && git submodule update --init --recursive
- name: Build Geth
run: cd go-ethereum && make
- name: Test Lodestar <> Geth interop
run: yarn test:sim:merge-interop
working-directory: packages/lodestar
env:
EL_BINARY_DIR: ../../go-ethereum/build/bin
EL_SCRIPT_DIR: geth
EL_PORT: 8545
TX_SCENARIOS: simple
# Install Nethermind merge interop
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Clone Nethermind merge interop branch
run: git clone -b themerge_kintsugi https://github.com/g11tech/nethermind --recursive && cd nethermind && git reset --hard $NETHERMIND_COMMIT && git submodule update --init --recursive
- name: Build Nethermind
run: cd nethermind/src/Nethermind && dotnet build Nethermind.sln -c Release
- name: Test Lodestar <> Nethermind interop
run: yarn test:sim:merge-interop
working-directory: packages/lodestar
env:
EL_BINARY_DIR: ../../nethermind/src/Nethermind/Nethermind.Runner
EL_SCRIPT_DIR: nethermind
EL_PORT: 8550
- name: Upload debug log test files
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: debug-test-logs
path: packages/lodestar/test-logs