Skip to content

Commit

Permalink
Merge 83ae4bb into e68a4c3
Browse files Browse the repository at this point in the history
  • Loading branch information
RCMartins committed Apr 18, 2021
2 parents e68a4c3 + 83ae4bb commit f4f8b1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pr.yml
Expand Up @@ -56,6 +56,10 @@ jobs:
communityTests:
name: Community projects tests
runs-on: ubuntu-latest
strategy:
matrix:
projectsToTest: ["playframework", "spire"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
Expand All @@ -64,7 +68,9 @@ jobs:
jvm: adopt:8
apps: bloop
- run: ./.github/scripts/setup.sh
- run: sbt "runCommunityProjects spire"
- run: sbt "runCommunityProjects $PROJECT_TO_TEST"
env:
PROJECT_TO_TEST: ${{ matrix.projectsToTest }}
scalaTests:
name: Run Tests Matrix
runs-on: ubuntu-latest
Expand Down
11 changes: 8 additions & 3 deletions project/RunCommunityProjects.scala
Expand Up @@ -5,10 +5,10 @@ object RunCommunityProjects {

private case class Project(url: String, folderName: String, blinkyConf: String)

private def defaultBlinkyConf(projectName: String): String =
private def defaultBlinkyConf(projectName: String, filesToMutate: String): String =
s"""projectPath = "."
|projectName = "$projectName"
|filesToMutate = "core/src/main"
|filesToMutate = "$filesToMutate"
|""".stripMargin

private val pluginsText = """addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.8")"""
Expand All @@ -18,7 +18,12 @@ object RunCommunityProjects {
"spire" -> Project(
"https://github.com/typelevel/spire.git",
"spire",
defaultBlinkyConf("testsJVM")
defaultBlinkyConf("testsJVM", "core/src/main")
),
"playframework" -> Project(
"https://github.com/playframework/playframework.git",
"playframework",
defaultBlinkyConf("Play", "core/play/src/main")
)
)

Expand Down

0 comments on commit f4f8b1b

Please sign in to comment.