Polish "Migrate building PRs to GitHub Action"

See gh-345
This commit is contained in:
Stephane Nicoll
2023-05-26 08:53:46 +02:00
parent 7afbdddd10
commit 24674edbc5
2 changed files with 14 additions and 24 deletions

View File

@@ -1,23 +1,23 @@
name: Pull Request build
name: Build Pull Request
on: pull_request
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
name: Build pull request
runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-projects/spring-retry' }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
java-version: '17'
distribution: 'liberica'
- name: Build with Maven
run: mvnw --batch-mode --update-snapshots verify
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: ./mvnw --batch-mode --update-snapshots verify