Skip to content

Commit e104794

Browse files
committed
chore: fix binarytree ci
1 parent 74da309 commit e104794

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

.github/workflows/blockchain-build.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ on:
1717
env:
1818
cwd: ${{github.workspace}}/packages/blockchain
1919

20-
# Removed defaults.run.working-directory - commands run from root with pnpm filters
20+
defaults:
21+
run:
22+
working-directory: packages/blockchain
2123

2224
concurrency:
2325
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-blockchain
@@ -31,40 +33,30 @@ jobs:
3133
- if: inputs.submodule-cache-key == 'none'
3234
uses: actions/checkout@v5
3335

34-
# We restore the code/deps from cache if triggered from workflow_call (i.e. have valid cache key)
36+
# We restore the code/deps from cache if triggered from workflow_call (i.e. have valid cache key)
3537
- uses: actions/cache/restore@v4
3638
id: dep-cache
3739
with:
3840
path: ${{github.workspace}}
3941
key: ${{ inputs.dep-cache-key }}
40-
41-
- uses: pnpm/action-setup@v4
42-
with:
43-
version: 10.5.2
44-
run_install: false
4542

4643
- name: Use Node.js 20
4744
uses: actions/setup-node@v5
4845
with:
4946
node-version: 20
5047
cache: 'pnpm'
5148

52-
- name: Sanity check repo root
53-
run: |
54-
pwd
55-
ls -la
56-
test -f package.json && echo "Found package.json at root" || (echo "Missing package.json at root" && exit 1)
57-
test -f pnpm-workspace.yaml && echo "Found pnpm-workspace.yaml" || echo "No pnpm-workspace.yaml (ok if not a workspace)"
58-
pnpm -v
59-
command -v pnpm
49+
- uses: pnpm/action-setup@v4
50+
with:
51+
version: 10.5.2
52+
run_install: false
6053

6154
- name: Install Dependencies (if called from workflow_dispatch)
6255
if: steps.dep-cache.outputs.cache-hit != 'true'
63-
run: pnpm install --frozen-lockfile --prefer-offline
56+
run: pnpm install --frozen-lockfile
6457
working-directory: ${{ github.workspace }}
65-
66-
- name: Test blockchain
67-
run: pnpm -w -r --filter @ethereumjs/blockchain run coverage
58+
59+
- run: pnpm run coverage
6860
- uses: codecov/codecov-action@v4
6961
with:
7062
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)