From 8f5ee4d0191f333963b4e29ae67d893993fb087f Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Fri, 15 Mar 2024 16:12:45 +0100 Subject: [PATCH] enable caching --- .github/workflows/ci-delta-app.yml | 9 +++++---- .github/workflows/ci-delta-core.yml | 9 +++++---- .github/workflows/ci-delta-plugins.yml | 9 +++++---- .github/workflows/ci-delta-ship.yml | 9 +++++---- .github/workflows/ci-delta-static-analysis.yml | 9 +++++---- .github/workflows/ci-docs-ext-links.yml | 1 + .github/workflows/ci-docs.yml | 1 + .github/workflows/ci-release-docker.yml | 1 + .github/workflows/ci-release-sonatype.yml | 1 + .github/workflows/ci-snapshot.yml | 1 + .github/workflows/ci-storage.yml | 9 +++++---- 11 files changed, 35 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci-delta-app.yml b/.github/workflows/ci-delta-app.yml index 1b41f6af0a..80317e0901 100644 --- a/.github/workflows/ci-delta-app.yml +++ b/.github/workflows/ci-delta-app.yml @@ -14,16 +14,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup JDK uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Unit tests run: | sbt -Dsbt.color=always -Dsbt.supershell=false \ diff --git a/.github/workflows/ci-delta-core.yml b/.github/workflows/ci-delta-core.yml index d7b66242ab..2920a03a90 100644 --- a/.github/workflows/ci-delta-core.yml +++ b/.github/workflows/ci-delta-core.yml @@ -18,16 +18,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup JDK uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Unit tests run: | sbt -Dsbt.color=always -Dsbt.supershell=false \ diff --git a/.github/workflows/ci-delta-plugins.yml b/.github/workflows/ci-delta-plugins.yml index 64881ff4b8..b02f031d8c 100644 --- a/.github/workflows/ci-delta-plugins.yml +++ b/.github/workflows/ci-delta-plugins.yml @@ -19,16 +19,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup JDK uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Add hosts to /etc/hosts run: | sudo echo "127.0.0.1 other.my-domain.com" | sudo tee -a /etc/hosts diff --git a/.github/workflows/ci-delta-ship.yml b/.github/workflows/ci-delta-ship.yml index fbd479b6c5..d91a60f46b 100644 --- a/.github/workflows/ci-delta-ship.yml +++ b/.github/workflows/ci-delta-ship.yml @@ -19,16 +19,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup JDK uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Unit tests run: | sbt -Dsbt.color=always -Dsbt.supershell=false \ diff --git a/.github/workflows/ci-delta-static-analysis.yml b/.github/workflows/ci-delta-static-analysis.yml index aa231a6f3b..d9d942122c 100644 --- a/.github/workflows/ci-delta-static-analysis.yml +++ b/.github/workflows/ci-delta-static-analysis.yml @@ -14,16 +14,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup JDK uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Static analysis run: | sbt -Dsbt.color=always -Dsbt.supershell=false \ diff --git a/.github/workflows/ci-docs-ext-links.yml b/.github/workflows/ci-docs-ext-links.yml index 9188cdf5e9..8fb4785866 100644 --- a/.github/workflows/ci-docs-ext-links.yml +++ b/.github/workflows/ci-docs-ext-links.yml @@ -14,6 +14,7 @@ jobs: with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml index c8d5dda8a6..e74e0246d8 100644 --- a/.github/workflows/ci-docs.yml +++ b/.github/workflows/ci-docs.yml @@ -18,6 +18,7 @@ jobs: with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-release-docker.yml b/.github/workflows/ci-release-docker.yml index 983c1ab191..52dcce4d8b 100644 --- a/.github/workflows/ci-release-docker.yml +++ b/.github/workflows/ci-release-docker.yml @@ -20,6 +20,7 @@ jobs: with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - name: Set up proxy for docker buildx run: | diff --git a/.github/workflows/ci-release-sonatype.yml b/.github/workflows/ci-release-sonatype.yml index 157e95039d..e361c8c5cf 100644 --- a/.github/workflows/ci-release-sonatype.yml +++ b/.github/workflows/ci-release-sonatype.yml @@ -25,6 +25,7 @@ jobs: with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - name: Publish To Sonatype run: sbt -Dsbt.color=always -Dsbt.supershell=false ci-release \ No newline at end of file diff --git a/.github/workflows/ci-snapshot.yml b/.github/workflows/ci-snapshot.yml index 13d0edec2e..41b19e8585 100644 --- a/.github/workflows/ci-snapshot.yml +++ b/.github/workflows/ci-snapshot.yml @@ -27,6 +27,7 @@ jobs: with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - name: Set up proxy for docker buildx run: | diff --git a/.github/workflows/ci-storage.yml b/.github/workflows/ci-storage.yml index ce0512d509..61c697fc07 100644 --- a/.github/workflows/ci-storage.yml +++ b/.github/workflows/ci-storage.yml @@ -14,16 +14,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup JDK uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'sbt' check-latest: true - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: StaticAnalysis run: sbt -Dsbt.color=always -Dsbt.supershell=false "project storage" clean scalafmtCheck Test/scalafmtCheck scalafmtSbtCheck scapegoat - name: Tests