chore(deps): update actions/cache action to v4 #586
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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: [ 8, 11, 16 ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/wrapper | |
| ~/.gradle/caches | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*') }} | |
| restore-keys: | | |
| gradle-${{ runner.os }} | |
| gradle- | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: adopt | |
| - name: Prepare | |
| run: ./gradlew clean dependencies | |
| - name: Build | |
| run: ./gradlew assemble testClasses | |
| - name: Test | |
| run: ./gradlew test | |
| - name: Publish Test Report | |
| uses: scacap/action-surefire-report@v1 | |
| if: failure() | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| check_name: Test Failures (${{ matrix.java-version }}) | |
| release: | |
| name: Release Check | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Release Check | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | |
| run: npx semantic-release | |