Skip to content

Commit

Permalink
apacheGH-2928: Workflow for checking dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Jan 8, 2025
1 parent 742e51e commit 6b82994
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pr-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

name: Maven Build on PR

on:
pull_request:
types:
- opened
- reopened
branches:
- 'main'

permissions:
contents: read

jobs:

build-pr:
## Dependabot only
if: github.actor == 'dependabot[bot]'

strategy:
fail-fast: false
matrix:
jdk_distribution: ['temurin']
os: [ubuntu-latest]
java_version: ['21']

runs-on: ${{ matrix.os }}

steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.jdk_distribution }}
java-version: ${{ matrix.java_version }}

- name: Build with Maven (Java${{ matrix.java_version }} ${{ matrix.jdk_distribution }})
## No javadoc - that needs visual check
run: mvn -B --file pom.xml -Dmaven.javadoc.skip=true install

0 comments on commit 6b82994

Please sign in to comment.