-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (40 loc) · 1.08 KB
/
ci-pr.yml
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
name: CI PRs
on:
workflow_dispatch:
pull_request:
jobs:
build:
timeout-minutes: 15
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- nickname: win
os: windows-latest
java: 17
- nickname: macos
os: macos-latest
java: 17
- nickname: linux
os: ubuntu-latest
java: 17
name: CI Build ${{ matrix.nickname }}
steps:
- uses: actions/checkout@v4
- uses: jvalkeal/setup-maven@v1
with:
maven-version: 3.6.3
- uses: actions/setup-java@v4
with:
distribution: liberica
java-version: ${{ matrix.java }}
cache: maven
- name: Verify formatting
run: ./mvnw -B -Pfunctional-tests spring-javaformat:validate
- name: Build (Windows and MacOS, no functional tests)
if: runner.os != 'Linux'
run: ./mvnw -B clean install
- name: Build (Linux)
if: runner.os == 'Linux'
run: ./mvnw -B -Pfunctional-tests,javadoc clean install