mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
Bumps [dorny/test-reporter](https://github.com/dorny/test-reporter) from 2 to 3. - [Release notes](https://github.com/dorny/test-reporter/releases) - [Changelog](https://github.com/dorny/test-reporter/blob/main/CHANGELOG.md) - [Commits](https://github.com/dorny/test-reporter/compare/v2...v3) --- updated-dependencies: - dependency-name: dorny/test-reporter dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
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
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-node@v5
|
|
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 --sandbox developer
|
|
|
|
- name: Publish Test Report
|
|
uses: dorny/test-reporter@v3
|
|
if: success() || failure()
|
|
with:
|
|
name: Test Report
|
|
path: packages/bruno-tests/collection/junit.xml
|
|
reporter: java-junit
|