File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 24
24
with :
25
25
distribution : ' temurin'
26
26
java-version : ' 17'
27
- cache : ' maven'
27
+ - uses : actions/cache@v3
28
+ with :
29
+ path : ~/.m2/repository
30
+ key : ${{ runner.os }}-maven-${{ hashFiles('custom-rules/maven-java/**/pom.xml') }}
31
+ restore-keys : |
32
+ ${{ runner.os }}-maven-
28
33
29
34
- name : Run .ci/build.sh
30
35
run : |
40
45
with :
41
46
distribution : ' temurin'
42
47
java-version : ' 17'
43
- cache : ' maven'
48
+ - uses : actions/cache@v3
49
+ with :
50
+ path : ~/.m2/repository
51
+ key : ${{ runner.os }}-maven-${{ hashFiles('custom-rules/maven-plsql/**/pom.xml') }}
52
+ restore-keys : |
53
+ ${{ runner.os }}-maven-
44
54
45
55
- name : Run .ci/build.sh
46
56
run : |
60
70
with :
61
71
path : custom-rules/plain-java/code
62
72
key : ${{ runner.os }}-pmd-${{ hashFiles('custom-rules/plain-java/.ci/build.sh') }}
73
+ restore-keys : |
74
+ ${{ runner.os }}-pmd-
63
75
64
76
- name : Run .ci/build.sh
65
77
run : |
75
87
with :
76
88
distribution : ' temurin'
77
89
java-version : ' 17'
78
- cache : ' maven'
90
+ - uses : actions/cache@v3
91
+ with :
92
+ path : ~/.m2/repository
93
+ key : ${{ runner.os }}-maven-${{ hashFiles('maven/simple-project/**/pom.xml') }}
94
+ restore-keys : |
95
+ ${{ runner.os }}-maven-
79
96
80
97
- name : Run .ci/build.sh
81
98
run : |
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ echo "======================================================="
10
10
echo " Building..."
11
11
echo " ======================================================="
12
12
echo
13
- ./mvnw clean verify
13
+ ./mvnw --show-version --batch-mode clean verify
14
14
15
15
echo
16
16
echo " ======================================================="
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ echo "======================================================="
10
10
echo " Building..."
11
11
echo " ======================================================="
12
12
echo
13
- ./mvnw clean verify
13
+ ./mvnw --show-version --batch-mode clean verify
14
14
15
15
echo
16
16
echo " ======================================================="
Original file line number Diff line number Diff line change 2
2
3
3
# exit immediately if a command fails
4
4
set -e
5
- java -version
6
- mvn --version
7
5
8
- mvn verify | tee build.log
6
+ mvn --show-version --batch-mode verify | tee build.log
9
7
grep " You have 2 PMD violations" build.log || (echo -e " \n\n\x1b[31mMissing expected rule violation\e[0m" ; exit 1)
10
8
11
9
echo -e " \n\n\x1b[32mTest successful\e[0m"
You can’t perform that action at this time.
0 commit comments