Onboarding new maven snapshots publishing to s3 (opensearch-sdk-java) #2704
Workflow file for this run
This file contains hidden or 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
| name: Gradle Build | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'backport/**' | |
| - 'whitesource-remediate/**' | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| spotless: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Spotless Check | |
| run: ./gradlew spotlessCheck | |
| javadoc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Javadoc CheckStyle | |
| run: ./gradlew checkstyleMain | |
| - name: Javadoc Check | |
| run: ./gradlew javadoc | |
| check: | |
| needs: [spotless, javadoc] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Run Gradle Check | |
| run: | | |
| ./gradlew check | |
| - name: Upload Coverage Report | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./build/reports/jacoco/test/jacocoTestReport.xml | |
| publish: | |
| needs: [check] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Publish to Maven Local | |
| run: ./gradlew publishToMavenLocal |