[CI] Add CI for PRs

This commit is contained in:
Chris Bono
2024-09-22 13:01:11 -05:00
committed by Dave Syer
parent 0535606a86
commit 422289e800

32
.github/workflows/ci-pr.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: CI PRs
on:
pull_request:
branches:
- 'main'
paths-ignore:
- '.github/**'
jobs:
build_and_verify:
name: Build and Verify
if: github.repository == 'spring-projects-experimental/spring-grpc'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build and test
run: |
./mvnw -B clean install
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '*/target/surefire-reports/*.*'
retention-days: 3