Update all dependencies #128
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: Build and run local tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build Project | |
| run: ./gradlew assemble --stacktrace | |
| - name: Run local tests | |
| run: ./gradlew allTests --stacktrace | |
| - name: Apply Spotless formatting. | |
| run: ./gradlew spotlessApply --stacktrace | |
| - name: Commit and push changes (if any). | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| author_name: GitHub Actions | |
| author_email: [email protected] | |
| message: Apply spotless formatting | |
| push: true |