Modified CLI-Test workflow to use its own testbench server

This commit is contained in:
ramki-bruno
2025-05-20 01:46:04 +05:30
parent 8cf8321087
commit dee6acbf09
2 changed files with 32 additions and 2 deletions

View File

@@ -36,11 +36,26 @@ jobs:
- name: Display Bru CLI Version
run: bru --version
- name: Start Testbench Server
run: |
cd packages/bruno-tests
npm run dev 1>/tmp/tesbench-server-logs.txt 2>&1 &
- name: Run tests
run: |
cd packages/bruno-tests/collection
npm install
bru run --env Prod --output junit.xml --format junit
bru run \
--env Prod \
--cacert ../ssl/localhost.crt \
--output junit.xml --format junit
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: tesbench-server-logs
path: /tmp/tesbench-server-logs.txt
retention-days: 7
- name: Publish Test Report
uses: dorny/test-reporter@v2

View File

@@ -81,11 +81,26 @@ jobs:
npm run build --workspace=packages/bruno-converters
npm run build --workspace=packages/bruno-requests
- name: Start Testbench Server
run: |
cd packages/bruno-tests
npm run dev 1>/tmp/tesbench-server-logs.txt 2>&1 &
- name: Run tests
run: |
cd packages/bruno-tests/collection
npm install
node ../../bruno-cli/bin/bru.js run --env Prod --output junit.xml --format junit
node ../../bruno-cli/bin/bru.js run \
--env Prod \
--cacert ../ssl/localhost.crt \
--output junit.xml --format junit
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: tesbench-server-logs
path: /tmp/tesbench-server-logs.txt
retention-days: 7
- name: Publish Test Report
uses: EnricoMi/publish-unit-test-result-action@v2