-
Notifications
You must be signed in to change notification settings - Fork 242
28 lines (23 loc) · 854 Bytes
/
ci-pr.yml
File metadata and controls
28 lines (23 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven for PRs
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# Disabling shallow clone is recommended for improving relevancy of reporting with SonarCloud
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
run: mvn --show-version --no-transfer-progress verify --file pom.xml -Pcoverage,cloudbees-oss-release -Dgpg.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}