Skip to content

Commit f10b76b

Browse files
committed
Run commands from root dir instead
1 parent 9adcc0d commit f10b76b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/cli_tests.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,20 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14-
defaults:
15-
run:
16-
working-directory: ./cli
1714
steps:
1815
- uses: actions/checkout@v4
1916

2017
- name: Set up Node.js
2118
uses: actions/setup-node@v4
2219
with:
23-
node-version-file: package.json
20+
node-version-file: cli/package.json
2421
cache: npm
2522

26-
- name: Current directory
27-
run: pwd
28-
2923
- name: Install dependencies
30-
run: npm install
24+
run: npm install --workspace=cli
3125

3226
- name: Build CLI
33-
run: npm run build
27+
run: npm run build --workspace=cli
3428

3529
- name: Run tests
36-
run: npm test
30+
run: npm run test --workspace=cli

0 commit comments

Comments
 (0)