Skip to content

Commit e6a0cb2

Browse files
authored
chore: reuse setup and build action in sim merge tests (#7345)
1 parent 18a0d68 commit e6a0cb2

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/test-sim-merge.yml

+2-23
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,10 @@ jobs:
2626
name: Sim merge tests
2727
runs-on: buildjet-4vcpu-ubuntu-2204
2828
steps:
29-
# <common-build> - Uses YAML anchors in the future
3029
- uses: actions/checkout@v4
31-
- uses: actions/setup-node@v4
30+
- uses: "./.github/actions/setup-and-build"
3231
with:
33-
node-version: 22
34-
check-latest: true
35-
cache: yarn
36-
- name: Node.js version
37-
id: node
38-
run: echo "v8CppApiVersion=$(node --print "process.versions.modules")" >> $GITHUB_OUTPUT
39-
- name: Restore dependencies
40-
uses: actions/cache@master
41-
id: cache-deps
42-
with:
43-
path: |
44-
node_modules
45-
packages/*/node_modules
46-
key: ${{ runner.os }}-${{ steps.node.outputs.v8CppApiVersion }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
47-
- name: Install & build
48-
if: steps.cache-deps.outputs.cache-hit != 'true'
49-
run: yarn install --frozen-lockfile && yarn build
50-
- name: Build
51-
run: yarn build
52-
if: steps.cache-deps.outputs.cache-hit == 'true'
53-
# </common-build>
32+
node: 22
5433

5534
- name: Pull Geth
5635
run: docker pull $GETH_IMAGE

0 commit comments

Comments
 (0)