Skip to content

Commit dc8bee3

Browse files
committed
chore: attempt ot fix binary trie ci
1 parent 9cebcb6 commit dc8bee3

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/binarytree-build.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ on:
1414
required: false
1515
default: 'none'
1616

17-
# No default working-directory — we install at the repo root on purpose
18-
1917
concurrency:
2018
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-binarytree
2119
cancel-in-progress: true
@@ -25,30 +23,34 @@ jobs:
2523
runs-on: ubuntu-24.04
2624

2725
steps:
26+
# Always fetch the repo (don’t rely on restoring the whole workspace from cache)
2827
- uses: actions/checkout@v5
2928
with:
3029
submodules: recursive
3130

32-
- name: Install pnpm
33-
uses: pnpm/action-setup@v4
31+
# Put pnpm on PATH first so setup-node's `cache: pnpm` can work safely
32+
- uses: pnpm/action-setup@v4
3433
with:
34+
# Use 'auto' if your root package.json has: { "packageManager": "[email protected]" }
35+
version: auto
3536
run_install: false
3637

37-
- name: Setup Node.js 20 (with pnpm store cache)
38-
uses: actions/setup-node@v5
38+
- uses: actions/setup-node@v5
3939
with:
4040
node-version: '20'
4141
cache: 'pnpm'
4242

43-
# Install dependencies from the WORKSPACE ROOT
44-
- name: Install dependencies (workspace)
43+
# Install **once** from the workspace root
44+
- name: Install dependencies (workspace root)
4545
working-directory: ${{ github.workspace }}
4646
run: pnpm install --frozen-lockfile
4747

48-
# Build only the binarytree package
48+
# Build ONLY the binarytree package (run inside its folder; no -r, no root scripts)
4949
- name: Build @ethereumjs/binarytree
50-
run: pnpm -w -r --filter "@ethereumjs/binarytree" run build
50+
working-directory: ${{ github.workspace }}/packages/binarytree
51+
run: pnpm run build
5152

52-
# Test only the binarytree package
53-
- name: Test @ethereumjs/binarytree
54-
run: pnpm -w -r --filter "@ethereumjs/binarytree" run test
53+
# Test ONLY the binarytree package (node tests)
54+
- name: Test @ethereumjs/binarytree (node)
55+
working-directory: ${{ github.workspace }}/packages/binarytree
56+
run: pnpm run test:node

0 commit comments

Comments
 (0)