Skip to content

Commit

Permalink
Check files under .github updated
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Nov 18, 2022
1 parent b9d4718 commit c964e2b
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c964e2b

Please sign in to comment.