File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,10 @@ jobs:
26
26
id : cache-jar
27
27
uses : actions/cache@v3
28
28
with :
29
- path : target/wrongsecrets-1.7.0-SNAPSHOT.jar
29
+ path : ./ target/wrongsecrets-1.7.0-SNAPSHOT.jar
30
30
key : JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
31
31
restore-keys : |
32
32
JarCache-${{ runner.os }}-
33
- - name : test
34
- run : |
35
- cd target
36
- ls
37
33
- name : Start wrongsecrets
38
34
run : nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
39
35
- name : ZAP Scan
Original file line number Diff line number Diff line change @@ -14,13 +14,25 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v4
17
+ - name : Check the cache
18
+ uses : actions/cache/restore@v3
19
+ id : cache
20
+ with :
21
+ path : ./target
22
+ key : JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
23
+ - name : Check cache hit
24
+ id : cache-hit-check
25
+ run : echo "::set-output name=cache-hit::${{ steps.cache.outputs.cache-hit }}"
17
26
- name : Set up JDK 21
27
+ if : steps.cache.outputs.cache-hit != 'true'
18
28
uses : actions/setup-java@v3
19
29
with :
20
30
java-version : " 21"
21
31
distribution : " corretto"
22
32
- name : Clean install
33
+ if : steps.cache.outputs.cache-hit != 'true'
23
34
run : ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
35
+
24
36
- name : Compile javadoc
25
37
run : ./mvnw --no-transfer-progress compile javadoc:javadoc
26
38
- name : Start wrongsecrets
You can’t perform that action at this time.
0 commit comments