From c964e2bc09139355aed708331f8fdb676c8ace72 Mon Sep 17 00:00:00 2001 From: TATSUNO Yasuhiro Date: Fri, 18 Nov 2022 11:57:54 +0900 Subject: [PATCH] Check files under .github updated --- .../scalasteward/core/edit/EditAlgTest.scala | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/core/src/test/scala/org/scalasteward/core/edit/EditAlgTest.scala b/modules/core/src/test/scala/org/scalasteward/core/edit/EditAlgTest.scala index 395a417937..0e4f8de9e6 100644 --- a/modules/core/src/test/scala/org/scalasteward/core/edit/EditAlgTest.scala +++ b/modules/core/src/test/scala/org/scalasteward/core/edit/EditAlgTest.scala @@ -286,6 +286,26 @@ class EditAlgTest extends FunSuite { assertEquals(runApplyUpdate(Repo("edit-alg", "test-10"), update, original), expected) } + test("Files under .github yml should be updated") { + val update = ("org.scala-lang".g % "scala-library".a % "3.1.3-RC2" %> "3.1.3-RC3").single + + val original = Map( + ".github/workflows/ci.yml" -> + """tests: + | with: + | scala: 2.12.15, 2.13.8, 3.1.3-RC2 + |"""".stripMargin + ) + val expected = Map( + ".github/workflows/ci.yml" -> + """tests: + | with: + | scala: 2.12.15, 2.13.8, 3.1.3-RC3 + |"""".stripMargin + ) + assertEquals(runApplyUpdate(Repo("edit-alg", "test-8"), update, original), expected) + } + private def runApplyUpdate( repo: Repo, update: Update,