-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 899 Bytes
/
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
name: CI
on:
push:
branches:
- "**"
tags-ignore:
- "**"
jobs:
continuous-integration:
runs-on: ubuntu-latest
env:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Cache
uses: actions/cache@v4
with:
path: .m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Test
run: mvn $MAVEN_CLI_OPTS test
- name: Build lib
run: mvn -$MAVEN_CLI_OPTS clean package -DskipTests
- name: Build CLI
run: mvn $MAVEN_CLI_OPTS clean package -Pcli -DskipTests