Skip to content

Commit

Permalink
Try fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trusta committed Mar 3, 2024
1 parent 0073f2e commit a756feb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 13 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['CLI Tests']
types:
- completed

# Assign permissions for unit tests to be reported.
# See https://github.com/dorny/test-reporter/issues/168
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Publish Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Report
artifact: test-results
path: packages/bruno-tests/collection/junit.xml
reporter: java-junit
18 changes: 5 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ on:
pull_request:
branches: [main]

# 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:
unit-test:
name: Unit Tests
Expand Down Expand Up @@ -74,13 +65,14 @@ jobs:
npm install
node ../../bruno-cli/bin/bru.js run --env Prod --output junit.xml --format junit
- name: Publish Test Report
uses: dorny/test-reporter@v1
# Separate test report in another workflow like recommanded for public repositories
# https://github.com/dorny/test-reporter?tab=readme-ov-file#recommended-setup-for-public-repositories
- name: Upload test report as artifact
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: Test Report
name: test-results
path: packages/bruno-tests/collection/junit.xml
reporter: java-junit

prettier:
name: Prettier
Expand Down

0 comments on commit a756feb

Please sign in to comment.