Skip to content

Commit

Permalink
Add setup-sbt to scala-steward GitHub Action (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
saeltz authored Jan 6, 2025
1 parent eb99b56 commit 81b3eaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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
run: sbt mimaReportBinaryIssues
4 changes: 2 additions & 2 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
author-email: 162267+scala-steward-for-moia[bot]@users.noreply.github.com

0 comments on commit 81b3eaf

Please sign in to comment.