fix: fixed tests workflow

This commit is contained in:
Anoop M D 2024-01-29 13:51:37 +05:30
parent a7253f1579
commit 8ada457bfc

View File

@ -26,7 +26,7 @@ jobs:
# bruno-js needs bruno-query to be built first
- name: Build Package bruno-query
run: npm build test --workspace=packages/bruno-query
run: npm run build --workspace=packages/bruno-query
- name: Test Package bruno-js
run: npm run test --workspace=packages/bruno-js
@ -42,7 +42,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies and run tests
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Build Libraries
run: |
npm run build --workspace=packages/bruno-query
npm run build --workspace=packages/bruno-lang
npm run build --workspace=packages/bruno-schema
npm run build --workspace=packages/bruno-common
- name: Run tests
run: |
cd packages/bruno-tests/collection
node ../../bruno-cli/bin/bru.js run --env Prod --output junit.xml --format junit