File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments