Skip to content

Commit

Permalink
refactor: github action push test results (#73)
Browse files Browse the repository at this point in the history
* refactor: github action push test results

* fix: try action

* fix: add folder for test results

* feat: test results

* fix: make him comment

* fix: make him comment change version

* fix: create comment call

* feat: html preview

* feat: test result

* fix: semicolon

* fix: remove seperatoor

* fix: try gthub output

* fix: try oout jon summary

* feat: junit report

* feat: comment tests

* feat: github ction to see test results

* fix: time unit

* fix: fix failed tests
  • Loading branch information
arifBurakDemiray authored Sep 22, 2023
1 parent a404bf5 commit caf3474
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Java Gradle Build and Test

permissions:
checks: write
pull-requests: write

on:
push:
branches:
Expand All @@ -16,15 +20,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'

- name: Build with Gradle
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
- name: Build and Test with Gradle
run: ./gradlew build

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
arguments: build
check_name: "Unit Test Results :rocket:"
comment_title: "Unit Test Results :rocket:"
files: |
sdk-java/build/test-results/**/*.xml

0 comments on commit caf3474

Please sign in to comment.