-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run and publish IT results in GH action
- Loading branch information
1 parent
aad0a93
commit affa684
Showing
1 changed file
with
4 additions
and
3 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build And Publish Snapshot | ||
name: Build And Publish Pull Request | ||
on: pull_request | ||
|
||
jobs: | ||
|
@@ -35,17 +35,18 @@ jobs: | |
run: chmod +x ./gradlew | ||
|
||
- name: Build | ||
id: build | ||
run: ./gradlew --warning-mode all check build -x test | ||
|
||
- name: Run Unit Tests | ||
id: unit_test | ||
if: ${{ steps.build.outcome == 'success' }} | ||
run: | | ||
export PATH="$HOME/.local/bin:$PATH" | ||
./gradlew --no-daemon --max-workers=2 --warning-mode=all test --continue --stacktrace | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/[email protected] | ||
if: always() | ||
if: ${{ steps.build.outcome == 'success' }} | ||
with: | ||
files: "**/test-results/test/**/*.xml" | ||
|
||
|