File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 30
30
push :
31
31
branches : [ master ]
32
32
33
+
33
34
jobs :
35
+
34
36
build :
35
37
36
38
runs-on : ubuntu-20.04
37
39
38
40
steps :
41
+
39
42
- uses : actions/checkout@v2
40
43
with :
41
44
# Disabling shallow clone for improving relevancy of SonarQube reporting
42
45
fetch-depth : 0
46
+
43
47
- name : Set up JDK 11
44
48
uses : actions/setup-java@v1
45
49
with :
46
50
java-version : 11
51
+
52
+ - name : Cache SonarCloud packages
53
+ uses : actions/cache@v2
54
+ with :
55
+ path : ~/.sonar/cache
56
+ key : ${{ runner.os }}-sonar
57
+ restore-keys : ${{ runner.os }}-sonar
58
+
47
59
- uses : actions/cache@v2
48
60
with :
49
61
path : ~/.m2/repository
50
62
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
51
63
restore-keys : |
52
64
${{ runner.os }}-maven-
65
+
53
66
# Some tests need screen access
54
67
- name : Install xvfb
55
68
run : sudo apt-get install -y xvfb
69
+
56
70
# The SonarQube analysis is only for the master branch of the main repository.
57
71
# SonarQube scan does not work for forked repositories try changing it to xvfb-run mvn clean verify
58
72
# See https://jira.sonarsource.com/browse/MMF-1371
You can’t perform that action at this time.
0 commit comments