From a7253f15793611cec291efbaa4f03da8cb8abfd1 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 29 Jan 2024 13:48:51 +0530 Subject: [PATCH] fix: fixed tests workflow --- .github/workflows/tests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index af45648e5b..1f385f5a2f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Unit Tests +name: Tests on: push: branches: [main] @@ -23,8 +23,13 @@ jobs: run: npm run test --workspace=packages/bruno-schema - name: Test Package bruno-app run: npm run test --workspace=packages/bruno-app + + # bruno-js needs bruno-query to be built first + - name: Build Package bruno-query + run: npm build test --workspace=packages/bruno-query - name: Test Package bruno-js run: npm run test --workspace=packages/bruno-js + - name: Test Package bruno-common run: npm run test --workspace=packages/bruno-common - name: Test Package bruno-cli @@ -39,9 +44,8 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies and run tests run: | - cd sanity/collection - npm install @usebruno/cli -g - bru run --env Prod --output junit.xml --format junit + cd packages/bruno-tests/collection + node ../../bruno-cli/bin/bru.js run --env Prod --output junit.xml --format junit - name: Publish Test Report uses: dorny/test-reporter@v1