Skip to content

Commit 4392979

Browse files
authored
Update scala-github-actions workflows to v7.0.1 (#169)
1 parent a2e5bd6 commit 4392979

5 files changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ on:
55
branches: [ master ]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
test:
10-
uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@dde27b9bd793d41d5aacf8fb74403c9de5da1146 # v6.3.0
13+
uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@61f111a4472fde7b63e5921ac8a238f22d1bb028 # v7.0.1
1114
with:
1215
scala_versions: '["2.13.18"]'
13-
# TODO no sbt-version-policy in this repo, so binary compatibility was never checked
14-
version_policy_check: false

.github/workflows/dependency-graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ permissions:
99

1010
jobs:
1111
submit:
12-
uses: evolution-gaming/scala-github-actions/.github/workflows/dependency-graph.yml@2a50f1819b6fef2657ba802fd62612b7fc8450f0 # v6.4.0
12+
uses: evolution-gaming/scala-github-actions/.github/workflows/dependency-graph.yml@61f111a4472fde7b63e5921ac8a238f22d1bb028 # v7.0.1

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: write # can delete tag on failed release attempt
10+
811
jobs:
912
release:
10-
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v5
13+
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@61f111a4472fde7b63e5921ac8a238f22d1bb028 # v7.0.1
1114
secrets: inherit
1215
with:
1316
verify_sbt_command: 'clean; check'
14-
publish_sbt_command: 'build'
17+
publish_sbt_command: 'build'

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ lazy val commonSettings = Seq(
2020
libraryDependencies ++= Seq(
2121
"org.playframework" %% "play-json" % "3.0.6",
2222
),
23+
versionPolicyIntention := Compatibility.BinaryCompatible,
2324
)
2425

2526
lazy val root = (project in file("."))
@@ -47,9 +48,8 @@ lazy val `root-pekko` = (project in file("pekko"))
4748
),
4849
)
4950

50-
//addCommandAlias("check", "all versionPolicyCheck Compile/doc")
51-
addCommandAlias("check", "all scalafmtCheckRepo")
52-
addCommandAlias("fmt", "+scalafmtRepo")
51+
addCommandAlias("check", "all scalafmtCheckRepo versionPolicyCheck Compile/doc")
52+
addCommandAlias("fmt", "scalafmtRepo")
5353
addCommandAlias(
5454
"build",
5555
"all root/testFull root-pekko/testFull root/compile root-pekko/compile root/publish root-pekko/publish",

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.2.0")
77
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.1.2")
88

99
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.2")
10+
11+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.3.0")

0 commit comments

Comments
 (0)