From 673c4b9d4201bfc37345dfafe3038d23dac27d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Zu=CC=88hlke?= Date: Mon, 27 Feb 2023 09:43:02 +0100 Subject: [PATCH] update github workflows: * olafurpg/setup got deprecated in v14 * replaced by actions/setup-java@v3 * enabled sbt caching * olafurpg/setup-gpg is no longer required since sbt-ci-release v1.5.5 --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++------- .github/workflows/release.yml | 7 +++-- 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 537cc406..3a7e86f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 with: - java-version: "adopt@1.${{ matrix.java }}" + distribution: temurin + java-version: "${{ matrix.java }}" + cache: sbt - run: sbt +testsJVM/test plugin/test env: GOOGLE_APPLICATION_CREDENTIALS: @@ -26,7 +28,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: sbt +testsJS/test env: GOOGLE_APPLICATION_CREDENTIALS: @@ -37,7 +43,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: npm install - run: sbt +testsJS/test env: @@ -49,7 +59,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: sbt +testsNative/test env: GOOGLE_APPLICATION_CREDENTIALS: @@ -60,7 +74,11 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: sbt +testsJVM/test shell: bash env: @@ -72,20 +90,32 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: sbt mimaReportBinaryIssues scalafmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: ./bin/scalafmt --check docs: name: Scalafix and Docs runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: sbt scalafixCheckAll - run: sbt docs/docusaurusCreateSite env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 793aad43..b3b80846 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,8 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: olafurpg/setup-scala@v13 - - uses: olafurpg/setup-gpg@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt - run: git fetch --unshallow - name: Publish ${{ github.ref }} run: |