Bump org.springframework.boot from 3.3.5 to 3.4.1 #321
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17, 21 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Build with Gradle | |
run: ./gradlew -V build | |
deploy-to-tomcat: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17, 21 ] | |
tomcat: [ 10.1.2, 10.1.13 ] | |
env: | |
TOMCAT_VERSION: ${{ matrix.tomcat }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Prepare Tomcat ${{ matrix.tomcat }} | |
run: | | |
wget https://archive.apache.org/dist/tomcat/tomcat-10/v${{ matrix.tomcat }}/bin/apache-tomcat-${{ matrix.tomcat }}.zip | |
unzip apache-tomcat-${{ matrix.tomcat }}.zip | |
chmod a+x apache-tomcat-${{ matrix.tomcat }}/bin/*.sh | |
apache-tomcat-${{ matrix.tomcat }}/bin/catalina.sh start | |
- name: Build with Gradle | |
run: ./gradlew -V bootWar | |
- name: Deploy to Tomcat | |
run: cp build/libs/joinfaces-gradle-war-example.war apache-tomcat-${{ matrix.tomcat }}/webapps/ | |
- name: Verify Deployment | |
run: | | |
timeout --preserve-status 60s tail -f apache-tomcat-${{ matrix.tomcat }}/logs/catalina.out || true | |
wget localhost:8080/joinfaces-gradle-war-example/index.xhtml | |
grep "Hello from Spring" index.xhtml |