From 27670676d554ac3f43cd53a1ea30da8bd8a0c34a Mon Sep 17 00:00:00 2001 From: Abdul Samad Siddiqui Date: Fri, 17 Mar 2023 23:57:51 +0500 Subject: [PATCH 1/2] Update pull_request.yml --- .github/workflows/pull_request.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 52c23e54..33729f2e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -29,6 +29,28 @@ jobs: java-version: 'adopt:1.11.0-11' node-version: '16.7.0' + - name: Cache sbt dependencies + uses: actions/cache@v2 + with: + path: | + ~/.sbt + ~/.ivy2/cache + ~/.cache/coursier + key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }} + restore-keys: | + ${{ runner.os }}-sbt- + + - name: Cache sbt build artifacts + uses: actions/cache@v2 + with: + path: | + admin/target/scala-* + web/target/scala-* + server/target/universal/ + key: ${{ runner.os }}-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-build- + - name: Check code format run: sbt scalafmtCheckAll From d35e21e002f344f9d1cb0edba24f0018329c9cbe Mon Sep 17 00:00:00 2001 From: Abdul Samad Siddiqui Date: Sat, 18 Mar 2023 00:01:41 +0500 Subject: [PATCH 2/2] Update codepreview.yml --- .github/workflows/codepreview.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/codepreview.yml b/.github/workflows/codepreview.yml index 4dd4c93f..3d1e3323 100644 --- a/.github/workflows/codepreview.yml +++ b/.github/workflows/codepreview.yml @@ -36,6 +36,27 @@ jobs: with: java-version: 'adopt:1.11.0-11' node-version: '16.7.0' + + - name: Cache sbt dependencies + uses: actions/cache@v2 + with: + path: | + ~/.sbt + ~/.ivy2/cache + ~/.cache/coursier + key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }} + restore-keys: | + ${{ runner.os }}-sbt- + - name: Cache sbt build artifacts + uses: actions/cache@v2 + with: + path: | + admin/target/scala-* + web/target/scala-* + server/target/universal/ + key: ${{ runner.os }}-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-build- - name: Compile run: sbt compile