37 lines
911 B
YAML
37 lines
911 B
YAML
name: CI PRs
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
paths-ignore:
|
|
- '.github/**'
|
|
|
|
jobs:
|
|
build_and_verify:
|
|
name: Build and Verify
|
|
if: github.repository == 'spring-projects/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
|
|
env:
|
|
signing_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
run: |
|
|
echo "${signing_key}" > private.asc
|
|
gpg --import --batch --no-tty private.asc
|
|
./mvnw -B clean install
|
|
- name: Capture Test Results
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-results
|
|
path: '*/target/surefire-reports/*.*'
|
|
retention-days: 3
|