From 81b3eafaed151af361290176950c0a32ae6632d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bendix=20S=C3=A4ltz?= Date: Mon, 6 Jan 2025 11:00:28 +0100 Subject: [PATCH] Add setup-sbt to scala-steward GitHub Action (#219) --- .github/workflows/buildAndTest.yml | 7 ++++++- .github/workflows/scala-steward.yml | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 63e5a17..4a2bbfc 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -16,6 +16,7 @@ jobs: ~/.m2 ~/.cache/coursier/ key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }} + - uses: sbt/setup-sbt@v1 - name: Scalafmt run: sbt scalafmtCheckAll @@ -33,6 +34,7 @@ jobs: ~/.m2 ~/.cache/coursier/ key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }} + - uses: sbt/setup-sbt@v1 - name: Compile run: sbt +compile @@ -51,6 +53,7 @@ jobs: ~/.m2 ~/.cache/coursier/ key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }} + - uses: sbt/setup-sbt@v1 - name: Test Samples run: sbt +samples/it:test @@ -68,6 +71,7 @@ jobs: ~/.m2 ~/.cache/coursier/ key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }} + - uses: sbt/setup-sbt@v1 - name: Run scapegoat run: sbt scapegoat @@ -85,5 +89,6 @@ jobs: ~/.m2 ~/.cache/coursier/ key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }} + - uses: sbt/setup-sbt@v1 - name: Run mima - run: sbt mimaReportBinaryIssues \ No newline at end of file + run: sbt mimaReportBinaryIssues diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml index 54fdd06..fcaa24f 100644 --- a/.github/workflows/scala-steward.yml +++ b/.github/workflows/scala-steward.yml @@ -15,10 +15,10 @@ jobs: with: app_id: 162267 private_key: ${{ secrets.SCALA_STEWARD_APP_PRIVATE_KEY }} - + - uses: sbt/setup-sbt@v1 - name: Launch Scala Steward uses: scala-steward-org/scala-steward-action@v2 with: github-token: ${{ steps.generate-token.outputs.token }} author-name: scala-steward - author-email: 162267+scala-steward-for-moia[bot]@users.noreply.github.com \ No newline at end of file + author-email: 162267+scala-steward-for-moia[bot]@users.noreply.github.com