17
17
env :
18
18
cwd : ${{github.workspace}}/packages/blockchain
19
19
20
- # Removed defaults.run.working-directory - commands run from root with pnpm filters
20
+ defaults :
21
+ run :
22
+ working-directory : packages/blockchain
21
23
22
24
concurrency :
23
25
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-blockchain
@@ -31,40 +33,30 @@ jobs:
31
33
- if : inputs.submodule-cache-key == 'none'
32
34
uses : actions/checkout@v5
33
35
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)
35
37
- uses : actions/cache/restore@v4
36
38
id : dep-cache
37
39
with :
38
40
path : ${{github.workspace}}
39
41
key : ${{ inputs.dep-cache-key }}
40
-
41
- - uses : pnpm/action-setup@v4
42
- with :
43
- version : 10.5.2
44
- run_install : false
45
42
46
43
- name : Use Node.js 20
47
44
uses : actions/setup-node@v5
48
45
with :
49
46
node-version : 20
50
47
cache : ' pnpm'
51
48
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
60
53
61
54
- name : Install Dependencies (if called from workflow_dispatch)
62
55
if : steps.dep-cache.outputs.cache-hit != 'true'
63
- run : pnpm install --frozen-lockfile --prefer-offline
56
+ run : pnpm install --frozen-lockfile
64
57
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
68
60
- uses : codecov/codecov-action@v4
69
61
with :
70
62
token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments