From 62046d5df1061215a9994cab75aea76bc427df57 Mon Sep 17 00:00:00 2001 From: Maksim Kostromin Date: Wed, 17 Jul 2024 23:49:34 -0400 Subject: [PATCH] Add github actions cache. --- .github/workflows/ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 30a117b6..fc449df0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,8 +12,14 @@ jobs: # github-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/setup-java@v4 with: - distribution: 'corretto' java-version: 8 + distribution: 'corretto' + - uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '**/package.json', '**/docker-compose.yaml') }} + restore-keys: | + ${{ runner.os }}-maven- - run: | echo "JAVA_HOME: $JAVA_HOME" java -version