Skip to content

Commit 79d3e4f

Browse files
authored
Merge branch 'master' into update/scalajs-js-envs-1.5.0
2 parents 8a3f66f + 6c7e8e6 commit 79d3e4f

File tree

8 files changed

+27
-33
lines changed

8 files changed

+27
-33
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: ['**']
77
tags: [v*]
8+
permissions:
9+
contents: write # release-drafter, auto-merge requirement
10+
pull-requests: write # labeler, auto-merge requirement
811
jobs:
912
ci:
1013
# run on external PRs, but not on internal PRs since those will be run by push to branch
@@ -13,7 +16,7 @@ jobs:
1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@v4
16-
- uses: sbt/setup-sbt@v1
19+
- uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1, specifically v1.1.14
1720
- name: Set up JDK
1821
uses: actions/setup-java@v4
1922
with:

.github/workflows/scala-steward.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,14 @@ on:
66
- cron: '0 0 * * *'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write # Required to checkout and push changes
11+
pull-requests: write # Required to create PRs for dependency updates
12+
913
jobs:
1014
scala-steward:
11-
runs-on: ubuntu-22.04
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
- name: Set up JDK 11
16-
uses: actions/setup-java@v3
17-
with:
18-
distribution: 'temurin'
19-
java-version: 11
20-
cache: 'sbt'
21-
- name: Launch Scala Steward
22-
uses: scala-steward-org/scala-steward-action@v2
23-
with:
24-
author-name: scala-steward
25-
author-email: scala-steward
26-
github-token: ${{ secrets.REPO_GITHUB_TOKEN }}
27-
repo-config: .scala-steward.conf
28-
ignore-opts-files: false
15+
uses: softwaremill/github-actions-workflows/.github/workflows/scala-steward.yml@main
16+
secrets:
17+
github-token: ${{ secrets.SOFTWAREMILL_CI_PR_TOKEN }}
18+
with:
19+
java-version: '21'

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=3.8.6
1+
version=3.10.2
22
maxColumn=140
33
dialect=scala212

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ For each project where you'd like to use the build settings, add some or all of
1111
file:
1212

1313
````scala
14-
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-common" % "2.1.0")
15-
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" % "2.1.0")
16-
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-extra" % "2.1.0")
17-
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-browser-test-js" % "2.1.0")
14+
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-common" % "2.1.1")
15+
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" % "2.1.1")
16+
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-extra" % "2.1.1")
17+
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-browser-test-js" % "2.1.1")
1818
````
1919

2020
Now you can add the appropriate settings in your `build.sbt`, e.g.:

build.sbt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ val commonSettings = Publish.ossPublishSettings ++ Seq(
99
sbtVersion in Global := {
1010
scalaBinaryVersion.value match {
1111
case "2.10" => "0.13.17"
12-
case "2.12" => "1.10.2"
12+
case "2.12" => "1.11.7"
1313
}
1414
}
1515
)
@@ -85,13 +85,13 @@ lazy val browserTestJs = project
8585
scriptedLaunchOpts += ("-Dplugin.version=" + version.value)
8686
)
8787
.settings(
88-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.19.0"),
88+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.20.1"),
8989
// playwright dependencies, copied from https://github.com/gmkumar2005/scala-js-env-playwright/blob/main/build.sbt
9090
libraryDependencies ++= Seq(
91-
"com.microsoft.playwright" % "playwright" % "1.49.0",
91+
"com.microsoft.playwright" % "playwright" % "1.56.0",
9292
"org.scala-js" %% "scalajs-js-envs" % "1.5.0",
93-
"com.google.jimfs" % "jimfs" % "1.3.0",
93+
"com.google.jimfs" % "jimfs" % "1.3.1",
9494
"com.outr" %% "scribe" % "3.15.2",
95-
"org.typelevel" %% "cats-effect" % "3.5.7"
95+
"org.typelevel" %% "cats-effect" % "3.6.3"
9696
)
9797
)

common/src/main/scala/com/softwaremill/SbtSoftwareMillCommon.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object SbtSoftwareMillCommon extends AutoPlugin {
1010
lazy val commonSmlBuildSettings = Seq(
1111
libraryDependencies ++= {
1212
if (ScalaArtifacts.isScala3(scalaVersion.value)) Nil
13-
else Seq(compilerPlugin("org.typelevel" %% "kind-projector" % "0.13.3" cross CrossVersion.full))
13+
else Seq(compilerPlugin("org.typelevel" %% "kind-projector" % "0.13.4" cross CrossVersion.full))
1414
},
1515
// silence transitive eviction warnings
1616
update / evictionWarningOptions := EvictionWarningOptions.empty,

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.11.1
1+
sbt.version=1.11.7

project/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
val sbtCiReleaseVersion = "1.11.1"
2-
val sbtScalafmtVersion = "2.5.4"
1+
val sbtCiReleaseVersion = "1.11.2"
2+
val sbtScalafmtVersion = "2.5.6"
33

44
lazy val root = project
55
.in(file("."))

0 commit comments

Comments
 (0)