Polish "Migrate building PRs to GitHub Action"
See gh-345
This commit is contained in:
28
.github/workflows/pr-build-workflow.yml
vendored
28
.github/workflows/pr-build-workflow.yml
vendored
@@ -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
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
platform: linux
|
||||
inputs:
|
||||
- name: git-repo
|
||||
outputs:
|
||||
- name: distribution-repository
|
||||
caches:
|
||||
- path: maven
|
||||
run:
|
||||
path: git-repo/ci/scripts/build-project.sh
|
||||
Reference in New Issue
Block a user