Skip to content

Commit 9b52cd7

Browse files
committed
fix: add Maven caching to CI workflow and update Redis configuration
1 parent e0efaf7 commit 9b52cd7

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,23 @@ jobs:
4949
timeout 30 bash -c 'until nc -z localhost 5432; do sleep 1; done'
5050
timeout 30 bash -c 'until nc -z localhost 6379; do sleep 1; done'
5151
52+
- name: Cache Maven
53+
uses: actions/cache@v4
54+
with:
55+
path: ~/.m2/repository
56+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
57+
restore-keys: |
58+
${{ runner.os }}-m2-
59+
5260
- name: Build and Run Tests
5361
env:
5462
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
5563
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
56-
POTSGRES_DB: ${{ secrets.POSTGRES_DB }}
64+
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
5765
POSTGRES_HOST_AUTH_METHOD: ${{ secrets.POSTGRES_HOST_AUTH_METHOD }}
5866

59-
SPRING_REDIS_HOST: ${{ secrets.REDIS_HOST }}
60-
SPRING_REDIS_PORT: ${{ secrets.REDIS_PORT }}
67+
SPRING_REDIS_HOST: localhost
68+
SPRING_REDIS_PORT: 6379
6169

6270
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
6371
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)