Skip to content

Commit

Permalink
try pr build parallelisation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwheatley committed Apr 21, 2024
1 parent 4ac9e54 commit 0a14c48
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pr-build.yml
Expand Up @@ -11,6 +11,10 @@ env:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command: [ testCore, testScalaTest, testZioTest, testMunit, testWeaver ]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -21,4 +25,4 @@ jobs:
distribution: temurin
java-version: 17
cache: sbt
- run: sbt commitCheck
- run: sbt ${{ matrix.command }}
58 changes: 46 additions & 12 deletions build.sbt
Expand Up @@ -176,7 +176,7 @@ deletePactFiles := {
}

addCommandAlias(
"commitCheck",
"testCore",
List(
"clean",
"scalafmtCheck",
Expand All @@ -186,14 +186,6 @@ addCommandAlias(
"deletePactFiles",
"project models",
"+test",
"project munit",
"+test",
"project weaver",
"+test",
"project zioTest",
"+test",
"project scalaTest",
"+test",
"project circe",
"+test",
"project playJson",
Expand All @@ -203,13 +195,55 @@ addCommandAlias(
"project exampleConsumer",
"+test",
"project exampleProvider",
"+test",
"project /"
"+test"
)
.mkString(";", ";", "")
)

addCommandAlias(
"testScalaTest",
List(
"clean",
"deletePactFiles",
"project scalaTest",
"+test"
)
.mkString(";", ";", "")
)

addCommandAlias(
"testMunit",
List(
"clean",
"deletePactFiles",
"project munit",
"+test"
)
.mkString(";", ";", "")
)

addCommandAlias(
"testZioTest",
List(
"clean",
"deletePactFiles",
"project scalaTest",
"+test"
)
.mkString(";", ";", "")
)

addCommandAlias(
"testWeaver",
List(
"clean",
"deletePactFiles",
"project weaver",
"+test"
)
.mkString(";", ";", "")
)

//Same as above but no cross building
addCommandAlias(
"quickCommitCheck",
List(
Expand Down

0 comments on commit 0a14c48

Please sign in to comment.