mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-10 08:08:16 -05:00
chore: reuse setup and build action in sim merge tests (#7345)
This commit is contained in:
25
.github/workflows/test-sim-merge.yml
vendored
25
.github/workflows/test-sim-merge.yml
vendored
@@ -26,31 +26,10 @@ jobs:
|
||||
name: Sim merge tests
|
||||
runs-on: buildjet-4vcpu-ubuntu-2204
|
||||
steps:
|
||||
# <common-build> - Uses YAML anchors in the future
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: "./.github/actions/setup-and-build"
|
||||
with:
|
||||
node-version: 22
|
||||
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>
|
||||
node: 22
|
||||
|
||||
- name: Pull Geth
|
||||
run: docker pull $GETH_IMAGE
|
||||
|
||||
Reference in New Issue
Block a user