-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (46 loc) · 1.55 KB
/
CI.yml
File metadata and controls
49 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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