-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 926 Bytes
/
build.yml
File metadata and controls
37 lines (34 loc) · 926 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
29
30
31
32
33
34
35
36
37
name: Build
env:
MAVEN_VERSION: "3.9.11"
on:
workflow_dispatch: # Allow manual trigger
pull_request:
branches: ["main"]
push:
branches: ["main"]
permissions:
contents: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ["17.0.18", "21.0.9"]
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Build
uses: ./.github/actions/build
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ env.MAVEN_VERSION }}
- name: Sonar Scan
uses: ./.github/actions/scan-with-sonar
if: matrix.java-version == '21.0.9'
with:
java-version: 21
maven-version: ${{ env.MAVEN_VERSION }}
sonarq-token: ${{ secrets.SONAR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}