-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (38 loc) · 1.03 KB
/
ci.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
43
44
45
name: JBehave CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest ]
java: [ 8, 11, 17, 21 ]
include:
- jdk-distribution: temurin
- jdk-distribution: zulu
platform: macos-latest
java: 8
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.jdk-distribution }}
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build
if: matrix.java == 8
shell: bash
run: ./mvnw install -s settings.xml -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode -e --quiet
- name: Build
if: matrix.java != 8
shell: bash
run: ./mvnw install -s settings.xml -P examples --batch-mode -e