Skip to content

Commit

Permalink
chore: reuse setup and build action in sim merge tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 9, 2025
1 parent 18a0d68 commit bcf2543
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/test-sim-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcf2543

Please sign in to comment.