chore: reuse setup and build action in sim merge tests (#7345)

This commit is contained in:
Nico Flaig
2025-01-10 09:03:37 +00:00
committed by GitHub
parent 18a0d681db
commit e6a0cb22b5

View File

@@ -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