Skip to content

115 Upgrade Spring Boot #538

115 Upgrade Spring Boot

115 Upgrade Spring Boot #538

Workflow file for this run

# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build and Test
on:
push:
branches:
- master
- main
- 'dev**'
pull_request:
branches:
- master
- main
- 'dev**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest, windows-latest]
jdk: [ 17 ] # (open)JDK releases
steps:
- uses: actions/checkout@v4
- name: Set up openJDK version
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu' # =openJDK
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build and Test
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
arguments: clean build
- name: Do one Coveralls test report
uses: gradle/gradle-build-action@v2
if: matrix.operating-system == 'ubuntu-latest' && matrix.jdk == 17
with:
gradle-home-cache-cleanup: true
arguments: jacocoTestReport coveralls
- name: Docker build and test
if: matrix.operating-system == 'ubuntu-latest' && matrix.jdk == 17
run: time bash ./docker/test_docker.sh
shell: bash