Skip to content

Commit d660c58

Browse files
committed
monorepo: Fixing execution paths for github actions
1 parent bc09ab4 commit d660c58

14 files changed

+78
-3
lines changed

.github/workflows/account-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
node-version: 12.x
1717
- uses: actions/checkout@v1
1818
- run: npm install
19+
working-directory: '${{ env.cwd }}'
1920
- run: npm run lint
2021
env:
2122
CI: true
23+
working-directory: '${{ env.cwd }}'
24+
env:
25+
cwd: '${{github.workspace}}/packages/account'

.github/workflows/account-test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
node-version: '${{ matrix.node-version }}'
2525
- uses: actions/checkout@v1
2626
- run: npm install
27+
working-directory: '${{ env.cwd }}'
2728
- run: npm test
2829
env:
2930
CI: true
31+
working-directory: '${{ env.cwd }}'
32+
env:
33+
cwd: '${{github.workspace}}/packages/account'

.github/workflows/block-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
node-version: 12.x
1515
- uses: actions/checkout@v1
1616
- run: npm install
17+
working-directory: '${{ env.cwd }}'
1718
- run: npm run lint
1819
env:
1920
CI: true
21+
working-directory: '${{ env.cwd }}'
22+
env:
23+
cwd: '${{github.workspace}}/packages/block'

.github/workflows/block-test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ jobs:
2222
node-version: '${{ matrix.node-version }}'
2323
- uses: actions/checkout@v1
2424
- run: npm install
25+
working-directory: '${{ env.cwd }}'
2526
- run: 'npm run test:node'
2627
env:
2728
CI: true
29+
working-directory: '${{ env.cwd }}'
2830
- run: 'npm run test:browser'
2931
env:
3032
CI: true
33+
working-directory: '${{ env.cwd }}'
34+
env:
35+
cwd: '${{github.workspace}}/packages/block'

.github/workflows/blockchain-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
node-version: 12.x
1616
- uses: actions/checkout@v1
1717
- run: npm install
18+
working-directory: '${{ env.cwd }}'
1819
- run: npm run lint
1920
env:
2021
CI: true
22+
working-directory: '${{ env.cwd }}'
23+
env:
24+
cwd: '${{github.workspace}}/packages/blockchain'

.github/workflows/blockchain-test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
node-version: '${{ matrix.node-version }}'
2424
- uses: actions/checkout@v1
2525
- run: npm install
26+
working-directory: '${{ env.cwd }}'
2627
- run: npm test
2728
env:
2829
CI: true
30+
working-directory: '${{ env.cwd }}'
31+
env:
32+
cwd: '${{github.workspace}}/packages/blockchain'

.github/workflows/common-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
node-version: 12.x
1616
- uses: actions/checkout@v1
1717
- run: npm install
18+
working-directory: '${{ env.cwd }}'
1819
- run: npm run lint
1920
env:
2021
CI: true
22+
working-directory: '${{ env.cwd }}'
23+
env:
24+
cwd: '${{github.workspace}}/packages/common'

.github/workflows/common-test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
node-version: '${{ matrix.node-version }}'
2424
- uses: actions/checkout@v1
2525
- run: npm install
26+
working-directory: '${{ env.cwd }}'
2627
- run: npm test
2728
env:
2829
CI: true
30+
working-directory: '${{ env.cwd }}'
31+
env:
32+
cwd: '${{github.workspace}}/packages/common'

.github/workflows/labeler.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
name: 'PR Labeler'
2-
on:
1+
name: PR Labeler
2+
'on':
33
- pull_request
4-
54
jobs:
65
label:
76
runs-on: ubuntu-latest

.github/workflows/tx-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
node-version: 12.x
1515
- uses: actions/checkout@v1
1616
- run: npm install
17+
working-directory: '${{ env.cwd }}'
1718
- run: npm run lint
1819
env:
1920
CI: true
21+
working-directory: '${{ env.cwd }}'
22+
env:
23+
cwd: '${{github.workspace}}/packages/tx'

.github/workflows/tx-test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ jobs:
2222
node-version: '${{ matrix.node-version }}'
2323
- uses: actions/checkout@v1
2424
- run: npm install
25+
working-directory: '${{ env.cwd }}'
2526
- run: 'npm run test:node'
2627
env:
2728
CI: true
29+
working-directory: '${{ env.cwd }}'
2830
- run: 'npm run test:browser'
2931
env:
3032
CI: true
33+
working-directory: '${{ env.cwd }}'
34+
env:
35+
cwd: '${{github.workspace}}/packages/tx'

.github/workflows/vm-lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
key: '${{ runner.os }}-node8-${{ hashFiles(''**/package.json'') }}'
2424
- run: npm install
2525
if: steps.cache-node-modules.outputs.cache-hit != 'true'
26+
working-directory: '${{ env.cwd }}'
2627
- run: npm run lint
2728
env:
2829
CI: true
30+
working-directory: '${{ env.cwd }}'
31+
env:
32+
cwd: '${{github.workspace}}/packages/vm'

.github/workflows/vm-nightly-test.yml

+17
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ jobs:
1111
node-version: 8.x
1212
- uses: actions/checkout@v1
1313
- run: npm install
14+
working-directory: '${{ env.cwd }}'
1415
- run: 'npm run test:API'
1516
env:
1617
CI: true
18+
working-directory: '${{ env.cwd }}'
1719
- run: 'npm run test:API:browser'
1820
env:
1921
CI: true
22+
working-directory: '${{ env.cwd }}'
23+
env:
24+
cwd: '${{github.workspace}}/packages/vm'
2025
test-state:
2126
runs-on: ubuntu-latest
2227
steps:
@@ -25,9 +30,13 @@ jobs:
2530
node-version: 8.x
2631
- uses: actions/checkout@v1
2732
- run: npm install
33+
working-directory: '${{ env.cwd }}'
2834
- run: 'npm run test:state:allForks'
2935
env:
3036
CI: true
37+
working-directory: '${{ env.cwd }}'
38+
env:
39+
cwd: '${{github.workspace}}/packages/vm'
3140
test-blockchain:
3241
runs-on: ubuntu-latest
3342
steps:
@@ -36,9 +45,13 @@ jobs:
3645
node-version: 8.x
3746
- uses: actions/checkout@v1
3847
- run: npm install
48+
working-directory: '${{ env.cwd }}'
3949
- run: 'npm run test:blockchain'
4050
env:
4151
CI: true
52+
working-directory: '${{ env.cwd }}'
53+
env:
54+
cwd: '${{github.workspace}}/packages/vm'
4255
slow-tests:
4356
runs-on: ubuntu-latest
4457
steps:
@@ -47,6 +60,10 @@ jobs:
4760
node-version: 8.x
4861
- uses: actions/checkout@v1
4962
- run: npm install
63+
working-directory: '${{ env.cwd }}'
5064
- run: 'npm run test:state:slow'
5165
env:
5266
CI: true
67+
working-directory: '${{ env.cwd }}'
68+
env:
69+
cwd: '${{github.workspace}}/packages/vm'

.github/workflows/vm-test.yml

+13
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ jobs:
2323
key: '${{ runner.os }}-node8-${{ hashFiles(''**/package.json'') }}'
2424
- run: npm install
2525
if: steps.cache-node-modules.outputs.cache-hit != 'true'
26+
working-directory: '${{ env.cwd }}'
2627
- run: 'npm run test:API'
2728
env:
2829
CI: true
30+
working-directory: '${{ env.cwd }}'
2931
- run: 'npm run test:API:browser'
3032
env:
3133
CI: true
34+
working-directory: '${{ env.cwd }}'
35+
env:
36+
cwd: '${{github.workspace}}/packages/vm'
3237
test-state:
3338
runs-on: ubuntu-latest
3439
steps:
@@ -44,9 +49,13 @@ jobs:
4449
key: '${{ runner.os }}-node8-${{ hashFiles(''**/package.json'') }}'
4550
- run: npm install
4651
if: steps.cache-node-modules.outputs.cache-hit != 'true'
52+
working-directory: '${{ env.cwd }}'
4753
- run: 'npm run test:state:selectedForks'
4854
env:
4955
CI: true
56+
working-directory: '${{ env.cwd }}'
57+
env:
58+
cwd: '${{github.workspace}}/packages/vm'
5059
test-blockchain:
5160
runs-on: ubuntu-latest
5261
steps:
@@ -62,6 +71,10 @@ jobs:
6271
key: '${{ runner.os }}-node8-${{ hashFiles(''**/package.json'') }}'
6372
- run: npm install
6473
if: steps.cache-node-modules.outputs.cache-hit != 'true'
74+
working-directory: '${{ env.cwd }}'
6575
- run: 'npm run test:blockchain'
6676
env:
6777
CI: true
78+
working-directory: '${{ env.cwd }}'
79+
env:
80+
cwd: '${{github.workspace}}/packages/vm'

0 commit comments

Comments
 (0)