-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'usebruno:main' into feature/support-for-generating-Powe…
…rShell-code
- Loading branch information
Showing
22 changed files
with
7,783 additions
and
17,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Bru CLI Tests (npm) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
build: | ||
description: 'Test Bru CLI (npm)' | ||
required: true | ||
default: 'true' | ||
|
||
# Assign permissions for unit tests to be reported. | ||
# See https://github.com/dorny/test-reporter/issues/168 | ||
permissions: | ||
statuses: write | ||
checks: write | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
test: | ||
name: CLI Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Install Bru CLI from NPM | ||
run: npm install -g @usebruno/cli | ||
|
||
- name: Display Bru CLI Version | ||
run: bru --version | ||
|
||
- name: Run tests | ||
run: | | ||
cd packages/bruno-tests/collection | ||
npm install | ||
bru run --env Prod --output junit.xml --format junit | ||
- name: Publish Test Report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: Test Report | ||
path: packages/bruno-tests/collection/junit.xml | ||
reporter: java-junit |
Oops, something went wrong.