-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Test Result mechanism like graphql-java (#628)
* Add Test Result mechanism like graphql-java * Add Test Result mechanism like graphql-java -deleted test
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ on: | |
push: | ||
branches: | ||
- master | ||
|
||
permissions: # For test summary bot | ||
checks: write | ||
|
||
jobs: | ||
buildAndPublish: | ||
runs-on: ubuntu-latest | ||
|
@@ -17,6 +21,7 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Java 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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' |