Skip to content

Commit

Permalink
Add Test Result mechanism like graphql-java (#628)
Browse files Browse the repository at this point in the history
* Add Test Result mechanism like graphql-java

* Add Test Result mechanism like graphql-java -deleted test
  • Loading branch information
bbakerman authored Nov 21, 2024
1 parent 302962b commit 01db1e0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- master

permissions: # For test summary bot
checks: write

jobs:
buildAndPublish:
runs-on: ubuntu-latest
Expand All @@ -17,6 +21,7 @@ jobs:

steps:
- uses: actions/checkout@v1

- name: Set up Java 11
uses: actions/setup-java@v1
with:
Expand All @@ -28,12 +33,20 @@ jobs:
uses: atlassian-labs/[email protected]
with:
output-modes: environment

- name: build test and publish
run: ./gradlew assemble && ./gradlew check --info && ./gradlew artifactoryPublish -x check --info
- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: lib/build
retention-days: 1

- name: Publish Test Results
uses: EnricoMi/[email protected]
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'

- name: debug files
run: find ./ -type f -name "*.jar" -ls
13 changes: 13 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@ on:
pull_request:
branches:
- "**"

permissions: # For test comment bot
checks: write
pull-requests: write

jobs:
buildAndTestPR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: '11.0.9'

- name: build and test
run: ./gradlew assemble --info && ./gradlew check --info
- uses: actions/upload-artifact@v3
Expand All @@ -25,3 +32,9 @@ jobs:
path: "**/build/reports/tests/test"
# Default is 90 days
retention-days: 7

- name: Publish Test Results
uses: EnricoMi/[email protected]
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'

0 comments on commit 01db1e0

Please sign in to comment.