Skip to content

Commit

Permalink
Add Pull request GitHub actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Feb 5, 2024
1 parent ed04d09 commit cc0acad
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build Pull Request
on: pull_request

permissions:
contents: read

jobs:
build:
name: Build pull request
runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-io/initializr' }}
steps:
- name: Check out
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'liberica'
cache: 'maven'

- name: Build with Maven
run: ./mvnw --batch-mode --update-snapshots verify

0 comments on commit cc0acad

Please sign in to comment.