Upgrade Spring Boot & Gradle Wrapper versions across the board #474
Workflow file for this run
This file contains 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: Test Pull Request (Java) | |
on: | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'java/**' | |
- '!java/native-image/**' | |
- '!java/java-node/**' | |
jobs: | |
smoke: | |
name: Smoke Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18.x | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache local Gradle repository | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('java/**/*.gradle*', 'java/**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.m2/wrapper | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', 'java/**/maven-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Setup Directories | |
run: | | |
#!/usr/bin/env bash | |
set -euo pipefail | |
mkdir -p ~/.m2/repository | |
mkdir -p ~/.m2/repository/wrapper/dists | |
mkdir -p ~/.gradle/caches | |
mkdir -p ~/.gradle/wrapper/dists | |
chmod -R 775 ~/.m2 | |
chmod -R 775 ~/.gradle | |
- name: Test Java Samples | |
run: | | |
./scripts/smoke.sh --suite java \ | |
--builder paketobuildpacks/builder:full \ | |
--builder paketobuildpacks/builder:base \ | |
--builder paketobuildpacks/builder:tiny |