-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.04 KB
/
maven-build.yml
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
29
30
31
32
33
34
35
36
37
38
39
# Build validation
name: Build
on:
push:
branches-ignore:
- master
- experimental/**
pull_request:
types: [opened, synchronize, reopened]
branches-ignore:
- master
- experimental/**
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [11, 17]
os: [ubuntu-latest]
distribution: [temurin]
steps:
- name: Maven Build with SonarCloud
uses: wcm-io-devops/github-action-maven-build-sonar@v1
with:
os: ${{ matrix.os }}
java-version: ${{ matrix.java }}
maven-executable: ./mvnw
sonar-run-on-os: ubuntu-latest
sonar-run-on-java-version: 17
sonar-token: ${{ secrets.SONAR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
# install target is used rather than verify to ensure that modules from the main build are available for the examples builds
maven-verify-args: -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean install