Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Bump plugin.spring from 1.9.23 to 1.9.24 #401

Bump plugin.spring from 1.9.23 to 1.9.24

Bump plugin.spring from 1.9.23 to 1.9.24 #401

Workflow file for this run

name: Java CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
type: [ "sonar", "without-sonar" ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle and analyze
if: matrix.type == 'sonar'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: ./gradlew build sonarqube --info
- name: Build with Gradle
if: matrix.type != 'sonar'
run: ./gradlew build
- name: Upload coverage to Codecov
if: matrix.type == 'sonar'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: false