Skip to content

Commit

Permalink
Run and publish IT results in GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Feb 28, 2024
1 parent aad0a93 commit affa684
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-pull-request.yml
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:
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit affa684

Please sign in to comment.