-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (29 loc) · 1.06 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
---
name: CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
javaVersion: [ 11, 17 ]
javaDistribution: [ "temurin", "zulu" ]
name: Java ${{ matrix.javaVersion }}-${{ matrix.javaDistribution }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: ${{ matrix.javaDistribution }}
java-version: ${{ matrix.javaVersion }}
- uses: actions/cache@v3
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