Run commands from root dir instead
This commit is contained in:
parent
9adcc0dd77
commit
f10b76b0ae
1 changed files with 4 additions and 10 deletions
14
.github/workflows/cli_tests.yml
vendored
14
.github/workflows/cli_tests.yml
vendored
|
|
@ -11,26 +11,20 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./cli
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version-file: package.json
|
node-version-file: cli/package.json
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Current directory
|
|
||||||
run: pwd
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install --workspace=cli
|
||||||
|
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: npm run build
|
run: npm run build --workspace=cli
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm test
|
run: npm run test --workspace=cli
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue