Skip to content

Commit c964e2b

Browse files
committed
Check files under .github updated
1 parent b9d4718 commit c964e2b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

modules/core/src/test/scala/org/scalasteward/core/edit/EditAlgTest.scala

+20
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,26 @@ class EditAlgTest extends FunSuite {
286286
assertEquals(runApplyUpdate(Repo("edit-alg", "test-10"), update, original), expected)
287287
}
288288

289+
test("Files under .github yml should be updated") {
290+
val update = ("org.scala-lang".g % "scala-library".a % "3.1.3-RC2" %> "3.1.3-RC3").single
291+
292+
val original = Map(
293+
".github/workflows/ci.yml" ->
294+
"""tests:
295+
| with:
296+
| scala: 2.12.15, 2.13.8, 3.1.3-RC2
297+
|"""".stripMargin
298+
)
299+
val expected = Map(
300+
".github/workflows/ci.yml" ->
301+
"""tests:
302+
| with:
303+
| scala: 2.12.15, 2.13.8, 3.1.3-RC3
304+
|"""".stripMargin
305+
)
306+
assertEquals(runApplyUpdate(Repo("edit-alg", "test-8"), update, original), expected)
307+
}
308+
289309
private def runApplyUpdate(
290310
repo: Repo,
291311
update: Update,

0 commit comments

Comments
 (0)