Skip to content

upgrade spring boot version #151

upgrade spring boot version

upgrade spring boot version #151

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
---
name: Java CI with Gradle
on:
pull_request:
branches: [ develop, main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permissions for gradlew
run: chmod +x gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
env:
SPRING_PROFILES_ACTIVE: integration-test-ci
with:
arguments: clean build
build-root-directory: .
- name: Add coverage to PR
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{github.workspace}}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{secrets.GITHUB_TOKEN}}
min-coverage-overall: 60
min-coverage-changed-files: 50
- name: Generate JaCoCo Badge
uses: cicirello/[email protected]
with:
generate-branches-badge: true
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit and push the badge (if it changed)
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'commit badge'
add: '*.svg'
docker:
needs: build
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
context: "{{defaultContext}}:."
tags: ericus20/spring-boot-starter:latest