diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..bca7777 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,41 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "github-workflow" ] + pull_request: + branches: [ "github-workflow" ] + workflow_dispatch: + +permissions: + checks: write + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + id: setup-gradle + with: + gradle-version: 8.5 + + - name: Execute Gradle test + run: gradle test + - name: Publish Test Report + uses: mikepenz/action-junit-report@v4 + if: success() || failure() # always run even if the previous step fails + with: + report_paths: '**/build/test-results/test/TEST-*.xml' + detailed_summary: true \ No newline at end of file