Skip to content

Update mikepenz/action-junit-report action to v5 #777

Update mikepenz/action-junit-report action to v5

Update mikepenz/action-junit-report action to v5 #777

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@460a3ca55fc5d559238a0efc7fa9f7465df8585d # v3
- name: Download Java JDK
uses: typelevel/download-java@817e8c0d48dc2e88e155a8e4f69ba493bef621be # v2
id: download-java
with:
distribution: temurin
java-version: 11
- name: Setup Java JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java.outputs.jdkFile }}
- name: Build & Test
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
with:
arguments: build --info
- name: Upload Coverage Report
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Publish Test Results
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
if: always()
with:
name: test-results
path: '**/build/test-results/*/TEST-*.xml'
- name: Publish To Sonatype
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
with:
arguments: publishAllPublicationsToMavenCentral