From f1726c8e9834a688a653fcf9b6c27d4cd716f58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Mon, 4 Mar 2024 15:24:21 +0700 Subject: [PATCH] Use latest scala setup action --- .github/workflows/ci.yml | 27 ++++++++++++++------------- .github/workflows/publish.yml | 8 +++++++- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3895a7e..398c257 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,15 +15,16 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: coursier/cache-action@v6 - - uses: laughedelic/coursier-setup@v1 + - uses: actions/setup-java@v4 with: - jvm: adopt:11 - apps: sbtn - - run: sbtn -v scalafixAll --check - - run: sbtn -v scalafmtCheckAll - - run: sbtn -v scalafmtSbtCheck - - run: sbtn -v headerCheckAll + distribution: temurin + java-version: 17 + cache: sbt + + - run: sbt --client scalafixAll --check + - run: sbt --client scalafmtCheckAll + - run: sbt --client scalafmtSbtCheck + - run: sbt --client headerCheckAll - name: yaml-lint uses: ibiqlik/action-yamllint@v3 @@ -34,13 +35,13 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: coursier/cache-action@v6 - - uses: laughedelic/coursier-setup@v1 + - uses: actions/setup-java@v4 with: - jvm: adopt:11 - apps: sbtn + distribution: temurin + java-version: 17 + cache: sbt - run: git submodule update --init - - run: sbtn -v test + - run: sbt --client test - uses: GabrielBB/xvfb-action@v1.6 with: run: sbt scripted diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 317b78a..af26ea4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,13 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: olafurpg/setup-scala@v14 + + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: sbt + - run: sbt ci-release env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}