chore(spring): upgrade to spring v3 #37
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: CI Pipeline | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-lib: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Run Test Coverage | |
run: ./gradlew jacocoTestReport | |
- name: Generate JaCoCo Badge | |
uses: cicirello/jacoco-badge-generator@v2 | |
with: | |
generate-branches-badge: true | |
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv | |
- name: Commit and push the badge (if it changed) | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: EndBug/add-and-commit@v7 | |
with: | |
default_author: github_actions | |
message: 'commit badge' | |
add: '*.svg' | |
- name: Upload JaCoCo coverage report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: jacoco-report | |
path: target/site/jacoco/ | |
# build-example-maven-java: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - name: Set up JDK | |
# uses: actions/setup-java@v4 | |
# with: | |
# java-version: '17' | |
# distribution: 'temurin' | |
# cache: maven | |
# | |
# - name: Build Java Example Project with Maven | |
# working-directory: ./examples/java-maven-h2 | |
# run: mvn -B package --file pom.xml | |
build-example-gradle-java: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Build Java Example Spring Reactive | |
working-directory: ./examples/java-gradle-reactive | |
run: ./gradlew build |