Update plugin org.springframework.boot to v3.4.2 #577
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 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 | |
on: | |
push: | |
branches: [main, development] | |
pull_request: | |
branches: [main, development] | |
jobs: | |
build: | |
name: Build and generate coverage report with Gradle in JDK ${{ matrix.jdk }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
# os: [ubuntu-latest, windows-latest, macos-latest] | |
os: [ubuntu-latest] | |
jdk: [17] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up OpenJDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.jdk }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Get Python location | |
run: python -c "import os, sys; print(sys.executable)" | |
- name: Update pip | |
run: python3 -m pip install --upgrade pip | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Prepare | |
run: mkdir -p /tmp/mapping-service/{schemas,plugins} | |
- name: Copy Plugins | |
run: cp plugins/* /tmp/mapping-service/plugins | |
- name: List Plugins | |
run: ls -la /tmp/mapping-service/plugins | |
- name: Clean | |
run: ./gradlew clean | |
# - if: matrix.os == 'windows-latest' | |
# name: Test with Gradle on Windows | |
# run: ./gradlew build -DapplicationProperties="src\test\resources\test-config\application-test-windows.properties" | |
- if: matrix.os != 'windows-latest' | |
name: Test with Gradle on ${{ matrix.os }} | |
run: ./gradlew build -DapplicationProperties="src/test/resources/test-config/application-test.properties" | |
- name: Generate report | |
run: ./gradlew jacocoTestReport | |
# - name: Codecov | |
# uses: codecov/codecov-action@v1 | |
# with: | |
# files: ./build/reports/jacoco/test/jacocoTestReport.xml |