-
Notifications
You must be signed in to change notification settings - Fork 26
57 lines (51 loc) · 1.53 KB
/
java.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Master
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Maven resources
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Java
id: setupJava
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
- name: Set up Maven
uses: tradeshift/actions-setup-maven@v4.5
with:
maven-version: 3.8.4
- name: Configure maven
uses: tradeshift/actions-setup-java-mtls@v1
with:
java-version: "${{ steps.setupJava.outputs.version }}"
maven-settings: ${{ secrets.MAVEN_SETTINGS_GH_PG }}
maven-security: ${{ secrets.MAVEN_SECURITY }}
maven-p12: ${{ secrets.MAVEN_P12 }}
maven-p12-password: ${{ secrets.MAVEN_P12_PASSWORD }}
mtls-cacert: ${{ secrets.MTLS_CACERT }}
- name: Verify
run: mvn -B verify
- name: SonarQube
uses: tradeshift/actions-sonarqube@v2
with:
ca-cert: ${{ secrets.MTLS_CACERT }}
client-cert: ${{ secrets.MTLS_CERT }}
client-key: ${{ secrets.MTLS_KEY }}
token: ${{ secrets.SONAR_TOKEN }}
args: |
-Dsonar.exclusions=**/**.java