From 8ada457bfc5568abc421b36dbd07e27c29a6b642 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 29 Jan 2024 13:51:37 +0530 Subject: [PATCH] fix: fixed tests workflow --- .github/workflows/tests.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1f385f5a2..0fc66f8d3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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