Skip to content

Commit d95d564

Browse files
committed
Refactor pipeline
1 parent 42dacd5 commit d95d564

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.github/actions/populate-cache/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ runs:
2222
./mvnw \
2323
--batch-mode \
2424
--color always \
25-
--define ci \
26-
package
25+
--define ci-populate-cache \
26+
dependency:go-offline verify

.github/workflows/build.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ permissions:
3636

3737
jobs:
3838
recreate-comment:
39+
name: Recreate Comment
3940
runs-on: ubuntu-latest
4041

4142
steps:
@@ -46,6 +47,7 @@ jobs:
4647
recreate-comment: true
4748

4849
populate-cache:
50+
name: Populate Cache
4951
runs-on: ubuntu-latest
5052

5153
steps:
@@ -55,7 +57,8 @@ jobs:
5557
- name: Populate cache
5658
uses: ./.github/actions/populate-cache
5759

58-
build:
60+
build-and-test:
61+
name: Build and Test
5962
runs-on: ubuntu-latest
6063

6164
needs:
@@ -73,7 +76,7 @@ jobs:
7376
distribution: 'temurin'
7477
cache: 'maven'
7578

76-
- name: Build
79+
- name: Build and Test
7780
run: |
7881
./mvnw \
7982
--batch-mode \
@@ -129,8 +132,7 @@ jobs:
129132
runs-on: ubuntu-latest
130133

131134
needs:
132-
- recreate-comment
133-
- build
135+
- build-and-test
134136

135137
steps:
136138
- name: Git checkout
@@ -140,10 +142,11 @@ jobs:
140142
uses: ./.github/actions/owasp
141143

142144
integration-tests:
145+
name: Integration Tests
143146
runs-on: ubuntu-latest
144147

145148
needs:
146-
- build
149+
- build-and-test
147150

148151
steps:
149152
- name: Git checkout

pom.xml

+14
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,20 @@
304304
<skipTests>true</skipTests>
305305
</properties>
306306
</profile>
307+
<profile>
308+
<id>ci-populate-cache</id>
309+
<activation>
310+
<property>
311+
<name>ci-populate-cache</name>
312+
</property>
313+
</activation>
314+
<properties>
315+
<dependency-check-maven.goal>update-only</dependency-check-maven.goal>
316+
<dependency-check-maven.skip>false</dependency-check-maven.skip>
317+
<formatter-maven-plugin.skip>true</formatter-maven-plugin.skip>
318+
<impsort-maven-plugin.skip>true</impsort-maven-plugin.skip>
319+
</properties>
320+
</profile>
307321
<profile>
308322
<id>owasp</id>
309323
<activation>

0 commit comments

Comments
 (0)