File tree 1 file changed +21
-7
lines changed
1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 19
19
workflow_dispatch :
20
20
21
21
jobs :
22
- java-17 :
23
- runs-on : ubuntu-latest
22
+ mvn-install :
23
+ strategy :
24
+ matrix :
25
+ java : [17]
26
+ os : [ubuntu-latest, windows-latest]
27
+ include :
28
+ - os : ubuntu-latest
29
+ java : 17
30
+ upload-dependency-graph : true
31
+ run-sonarcloud : true
32
+ run-coveralls : true
33
+
34
+ runs-on : ${{ matrix.os }}
24
35
25
36
steps :
26
37
- name : Checkout
27
38
uses : actions/checkout@v3
28
- - name : Set up JDK 17
39
+ - name : Set up JDK ${{ matrix.java }}
29
40
uses : actions/setup-java@v3
30
41
with :
31
- java-version : " 17 "
42
+ java-version : ${{ matrix.java }}
32
43
distribution : " temurin"
33
44
cache : maven
34
45
- name : Build with Maven
35
46
run : mvn install
36
47
37
48
# Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
38
- - name : Update dependency graph
49
+ - if : ${{ matrix.upload-dependency-graph }}
50
+ name : Update dependency graph
39
51
uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
40
52
41
- - name : SonarCloud
53
+ - if : ${{ matrix.run-sonarcloud }}
54
+ name : SonarCloud
42
55
env :
43
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
57
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
45
58
run : mvn sonar:sonar -P sonarcloud
46
59
47
- - name : Coveralls
60
+ - if : ${{ matrix.run-coveralls }}
61
+ name : Coveralls
48
62
uses : coverallsapp/github-action@v2
49
63
with :
50
64
# *base-path* is prepended to all paths in order to correctly reference source files on coveralls.io
You can’t perform that action at this time.
0 commit comments