-
Notifications
You must be signed in to change notification settings - Fork 83
54 lines (49 loc) · 1.78 KB
/
check-samples-maven.yml
File metadata and controls
54 lines (49 loc) · 1.78 KB
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
46
47
48
49
50
51
52
53
54
name: Check Samples (Maven)
on:
workflow_dispatch:
jobs:
check_samples:
name: Check Samples project
if: ${{ github.repository == 'spring-projects/spring-grpc' }}
strategy:
matrix:
include:
- javaVersion: 25
distribution: 'liberica'
- javaVersion: 17
distribution: 'temurin'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java ${{ matrix.javaVersion }} ${{ matrix.distribution }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.javaVersion }}
distribution: ${{ matrix.distribution }}
cache: maven
- name: Build and run samples w/ Java 25 ${{ matrix.distribution }}
if: ${{ matrix.javaVersion == 25 }}
run: |
cd samples
../mvnw clean install \
-pl '!grpc-server-kotlin' \
-Dmaven-checkstyle-plugin.config.location=../src/checkstyle \
-Djava.version=25
../mvnw clean install \
-pl 'grpc-server-kotlin' \
-Dmaven-checkstyle-plugin.config.location=../src/checkstyle \
-Djava.version=24
- name: Build and run samples w/ Java ${{ matrix.javaVersion }} ${{ matrix.distribution }}
if: ${{ matrix.javaVersion != 25 }}
run: |
cd samples
../mvnw clean install \
-Dmaven-checkstyle-plugin.config.location=../src/checkstyle \
-Djava.version=${{ matrix.javaVersion }}
- name: Upload Build Reports (Java ${{ matrix.javaVersion }} ${{ matrix.distribution }})
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: '*/target/surefire-reports/*.*'
retention-days: 3