Skip to content

Commit

Permalink
One test comment per OS
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed May 6, 2024
1 parent ce6b952 commit 5599b81
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test-and-cover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
recreate: true
path: code-coverage-results.md

pr-comment-test-results:
pr-comment-test-results:
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand All @@ -160,7 +160,17 @@ jobs:
- name: run ls recursively
run: ls -R

- name: Add Test Results PR Comment
- name: Add Test Results PR Comment (Windows)
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/**/*.trx"
trx_files: "${{ github.workspace }}/TestResults-windows-latest/**/*.trx"

- name: Add Test Results PR Comment (Ubuntu)
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/TestResults-ubuntu-latest/**/*.trx"

- name: Add Test Results PR Comment (MacOS)
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/TestResults-macos-latest/**/*.trx"
27 changes: 18 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@ on:
- '.github/workflows/test.yml'

jobs:
test-macos:
uses: ./.github/workflows/test-macos.yml
test-ubuntu:
uses: ./.github/workflows/test-ubuntu.yml
test-windows:
uses: ./.github/workflows/test-windows.yml
test-ubuntu:
uses: ./.github/workflows/test-ubuntu.yml
test-macos:
uses: ./.github/workflows/test-macos.yml
coverage:
runs-on: ubuntu-latest
needs: [test-windows]
steps:
- uses: actions/download-artifact@v4

- name: Combine Coverage Reports # This is because one report is produced per project, and we want one result for all of them.
uses: danielpalme/[email protected]
with:
Expand Down Expand Up @@ -112,15 +111,25 @@ jobs:
pull-requests: write
contents: read
checks: write
needs: test-windows
needs: [test-windows, test-ubuntu, test-macOS]
if: github.event_name == 'pull_request'
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4

- name: run ls recursively
run: ls -R

- name: Add Test Results PR Comment
- name: Add Test Results PR Comment (Windows)
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/TestResults-Windows/**/*.trx"

- name: Add Test Results PR Comment (Ubuntu)
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/TestResults-Ubuntu/**/*.trx"

- name: Add Test Results PR Comment (MacOS)
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/**/*.trx"
trx_files: "${{ github.workspace }}/TestResults-macOS/**/*.trx"

0 comments on commit 5599b81

Please sign in to comment.