Skip to content

Commit 9fda427

Browse files
committed
Use setup-sbt in CI workflow
1 parent 67b11ab commit 9fda427

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
~/Library/Caches/Coursier/v1
6767
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
6868

69+
- name: Setup sbt
70+
uses: sbt/setup-sbt@v1
71+
6972
- name: Setup NodeJS v18 LTS
7073
if: matrix.ci == 'ciNode' || matrix.ci == 'ciJSDOMNodeJS'
7174
uses: actions/setup-node@v3

build.sbt

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ ThisBuild / scmInfo := Some(
4545
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.16", "2.13.7", "3.1.3")
4646

4747
ThisBuild / githubWorkflowBuildPreamble ++= Seq(
48+
WorkflowStep.Use(
49+
UseRef.Public("sbt", "setup-sbt", "v1"),
50+
name = Some("Setup sbt")
51+
),
4852
WorkflowStep.Use(
4953
UseRef.Public("actions", "setup-node", "v3"),
5054
name = Some("Setup NodeJS v18 LTS"),

0 commit comments

Comments
 (0)