-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (30 loc) · 1.12 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
---
name: CI
permissions: {}
on: [ push ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
javaVersion: [ 11, 17, 21 ]
javaDistribution: [ "temurin", "zulu" ]
name: Java ${{ matrix.javaVersion }}-${{ matrix.javaDistribution }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.javaDistribution }}
java-version: ${{ matrix.javaVersion }}
- uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Verify with Maven
if: ${{ matrix.javaVersion >= 17 }}
run: mvn verify --no-transfer-progress -Drevision=0.1.0 -Dchangelist=-SNAPSHOT
- name: Verify with Maven
if: ${{ matrix.javaVersion < 17 }}
run: mvn verify --no-transfer-progress -Drevision=0.1.0 -Dchangelist=-SNAPSHOT --projects -:micrometer-certs-expiration-samples-spring-boot3,-:micrometer-certs-expiration-samples-micronaut4,-:micrometer-certs-expiration-samples-quarkus3