Skip to content

Commit 512e543

Browse files
committed
ci improvements - fixing maven caches
1 parent c681e83 commit 512e543

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Cache Maven packages
6363
uses: actions/cache@v3 # defining cache key and restore keys for the cache step. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
6464
with:
65-
path: /root/.m2 # path to the directory where maven packages are stored - /root/.m2 in the container
65+
path: ~/.m2/repository # path to the directory where maven packages are stored - /root/.m2 in the container
6666
key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }}
6767
restore-keys: ${{ runner.os }}-build-
6868
# running liquibase quality checks step to ensure that the database changelogs are well-formed and follow best practices.
@@ -137,9 +137,9 @@ jobs:
137137
- name: Cache Maven packages
138138
uses: actions/cache@v3 # using the actions/cache@v3 action to cache the maven packages
139139
with:
140-
path: /root/.m2 # path to cache
141-
key: ${{ runner.os }}-uat-${{ hashFiles('**/pom.xml') }} # key for restoring and saving the cache
142-
restore-keys: ${{ runner.os }}-uat- # key for restoring the cache if no exact match is found
140+
path: ~/.m2 # path to cache
141+
key: ${{ runner.os }}-junit-${{ hashFiles('**/pom.xml') }} # key for restoring and saving the cache
142+
restore-keys: ${{ runner.os }}-junit- # key for restoring the cache if no exact match is found
143143
# In this step, we are downloading the latest artifact from the build job and storing it in the container
144144
- run: |
145145
# Download the latest tests results artifact number from the GitHub API using jq to parse the JSON response

0 commit comments

Comments
 (0)