Skip to content

Commit 97849be

Browse files
committed
Change the way we define the cache path and remove Flowable artifacts at the end of the build
1 parent c8fba81 commit 97849be

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/distro-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
- name: Cache Maven Repository
2424
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2525
with:
26-
path: |
27-
~/.m2/repository
28-
!~/.m2/repository/org/flowable
26+
path: ~/.m2/repository
2927
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3028
restore-keys: ${{ runner.os }}-maven-
3129
- name: Verify Distribution
@@ -37,3 +35,5 @@ jobs:
3735
path: 'distro/target/flowable-*.zip'
3836
retention-days: 10
3937
if-no-files-found: 'error'
38+
- name: Remove Flowable artifacts from cache
39+
run: rm -rf ~/.m2/repository/org/flowable

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
- name: Cache Maven Repository
2525
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2626
with:
27-
path: |
28-
~/.m2/repository
29-
!~/.m2/repository/org/flowable
27+
path: ~/.m2/repository
3028
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3129
restore-keys: ${{ runner.os }}-maven-
3230
- name: Install
@@ -46,3 +44,5 @@ jobs:
4644
with:
4745
name: surefire-${{matrix.java}}-txt
4846
path: '**/target/surefire-reports/*-output.txt'
47+
- name: Remove Flowable artifacts from cache
48+
run: rm -rf ~/.m2/repository/org/flowable

.github/workflows/windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
- name: Cache Maven Repository
2525
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2626
with:
27-
path: |
28-
~/.m2/repository
29-
!~/.m2/repository/org/flowable
27+
path: ~/.m2/repository
3028
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3129
restore-keys: ${{ runner.os }}-maven-
3230
- name: Install
3331
# Need to do install first in order for the OSGi tests to work
3432
run: ./mvnw install %MAVEN_ARGS% -D skipTests=true -D maven.javadoc.skip=true
3533
- name: Test
3634
run: ./mvnw verify -P distro,errorLogging %MAVEN_ARGS% -D maven.test.redirectTestOutputToFile=false
35+
- name: Remove Flowable artifacts from cache
36+
run: Remove-Item -Recurse -Force ~/.m2/repository/org/flowable -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)