Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support go-junit-report #111

Merged
merged 33 commits into from
Dec 28, 2022
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0609e03
add logs
ghaiszaher Dec 25, 2022
e216f6c
more log
ghaiszaher Dec 25, 2022
e806e55
logging
ghaiszaher Dec 25, 2022
3f7a899
core.info
ghaiszaher Dec 25, 2022
69c3fb1
again
ghaiszaher Dec 25, 2022
10aa5bd
package
ghaiszaher Dec 25, 2022
702fea1
more logs
ghaiszaher Dec 25, 2022
22aa55f
log testcase
ghaiszaher Dec 25, 2022
6681178
other way for filename
ghaiszaher Dec 25, 2022
0ae089e
log file name search
ghaiszaher Dec 25, 2022
2c5b3a2
or
ghaiszaher Dec 25, 2022
cf56d4e
array
ghaiszaher Dec 25, 2022
2583104
file_name_in_stack_trace
ghaiszaher Dec 25, 2022
d4f4c4a
Apply suggestions from code review
ghaiszaher Dec 25, 2022
2eada77
go sample report
ghaiszaher Dec 25, 2022
98fd43f
Merge remote-tracking branch 'origin/chore/go' into chore/go
ghaiszaher Dec 25, 2022
9dba878
cd go
ghaiszaher Dec 25, 2022
cc52eeb
don't set exit code
ghaiszaher Dec 25, 2022
b463315
file_name_in_stack_trace: true
ghaiszaher Dec 25, 2022
7c604ec
add test
ghaiszaher Dec 25, 2022
3fc7500
remove log
ghaiszaher Dec 25, 2022
a734949
Merge remote-tracking branch 'origin/master' into chore/go
ghaiszaher Dec 26, 2022
b027661
bubble up and add test
ghaiszaher Dec 26, 2022
9ae3b1f
fix test (#112)
ghaiszaher Dec 26, 2022
0ccd072
more tests
ghaiszaher Dec 26, 2022
791f514
rename variable
ghaiszaher Dec 26, 2022
3ad7bc8
revert unrelated changes
ghaiszaher Dec 26, 2022
3f00f73
revert 2
ghaiszaher Dec 26, 2022
13359ad
forgotten line
ghaiszaher Dec 26, 2022
77ff004
use regex
ghaiszaher Dec 26, 2022
4adfbd6
simpler regex
ghaiszaher Dec 26, 2022
df4d51b
revert unnecessary
ghaiszaher Dec 26, 2022
f63d9c7
add documentation
ghaiszaher Dec 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,32 @@ jobs:
java-version: 8
distribution: 'zulu'
- run: cd tests && mvn clean test --batch-mode -Dmaven.test.failure.ignore=true
- uses: scacap/action-surefire-report@master
- uses: ./
if: github.ref != 'refs/heads/master'
with:
check_name: Example Surefire Test Report
- uses: cclauss/GitHub-Action-for-pytest@0.5.0
with:
args: pytest --junit-xml=python/report.xml python/ || exit 0
- uses: scacap/action-surefire-report@master
- uses: ./
if: github.ref != 'refs/heads/master'
with:
check_name: Example Pytest Report
report_paths: python/report.xml
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
- run: |
cd go &&
go install github.com/jstemmer/go-junit-report/v2@latest &&
go test -v 2>&1 ./... |
go-junit-report -out report.xml
- uses: ./
if: github.ref != 'refs/heads/master'
with:
check_name: Example Go Report
report_paths: go/report.xml
file_name_in_stack_trace: true
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ inputs:
description: 'skip test report publishing'
required: false
default: 'false'
file_name_in_stack_trace:
description: 'get filename from stack trace'
required: false
default: 'false'
outputs:
outcome:
description: 'the test outcome, either `success` or `failure`'
Expand Down
Loading