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