Skip to content

PR for v1.1.2

PR for v1.1.2 #817

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
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, 21]
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.13'
- 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}
- name: Clean
run: ./gradlew clean
- 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