-
Notifications
You must be signed in to change notification settings - Fork 79
40 lines (38 loc) · 1.21 KB
/
ci-pr.yml
File metadata and controls
40 lines (38 loc) · 1.21 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
name: CI PRs
on:
pull_request:
branches:
- 'main'
- '1.0.x'
paths-ignore:
- '.github/**'
jobs:
build_and_verify:
name: Build and Verify
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, test, and run samples (Java ${{ matrix.javaVersion }} ${{ matrix.distribution }})
run: |
./mvnw -B clean install-Dgpg.skip=true
- name: Upload Build Reports (Java ${{ matrix.javaVersion }} ${{ matrix.distribution }})
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-java-${{ matrix.javaVersion }}-${{ matrix.distribution }}
path: '*/target/surefire-reports/*.*'
retention-days: 3