chore(main): release 1.52.2 #466
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: Pull Request Build Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| pr-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Copy CI gradle.properties | |
| run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: 'zulu' # Alternative distribution options are available | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| dependency-graph: generate-and-submit | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
| restore-keys: ${{ runner.os }}-gradle | |
| - name: Check spotless | |
| run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache --refresh-dependencies | |
| - name: Run Tests | |
| run: ./gradlew test --no-configuration-cache --refresh-dependencies | |
| notify: | |
| name: Notify Slack | |
| needs: pr-build | |
| uses: ./.github/workflows/slack.yml | |
| with: | |
| job-status: ${{ needs.pr-build.result }} | |
| secrets: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |