Skip to content

Commit 1b8c002

Browse files
committed
Add udash CI command matrix
1 parent a980a4b commit 1b8c002

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
build:
2323
name: Build and Test
2424
strategy:
25+
fail-fast: false
2526
matrix:
2627
os: [ubuntu-latest]
2728
scala: [2.13.16]
2829
java: [temurin@17, temurin@21, temurin@25]
30+
command: [udash-jvm/test, udash-js/test, guide-selenium/test]
2931
runs-on: ${{ matrix.os }}
3032
steps:
3133
- name: Checkout current branch (full)
@@ -69,8 +71,8 @@ jobs:
6971
- name: Check that workflows are up to date
7072
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
7173

72-
- name: Build project
73-
run: sbt '++ ${{ matrix.scala }}' test
74+
- name: Run tests
75+
run: sbt '++ ${{ matrix.scala }}' '${{ matrix.command }}'
7476

7577
publish:
7678
name: Publish Artifacts

build.sbt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ inThisBuild(Seq(
2424
),
2525
scalaVersion := Dependencies.versionOfScala,
2626

27-
2827
githubWorkflowTargetTags ++= Seq("v*"),
29-
3028
githubWorkflowArtifactUpload := false,
3129
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"), JavaSpec.temurin("21"), JavaSpec.temurin("25")),
3230
githubWorkflowBuildPreamble ++= Seq(
@@ -39,10 +37,14 @@ inThisBuild(Seq(
3937
name = Some("Install npm dependencies")
4038
)
4139
),
42-
4340
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
4441
githubWorkflowEnv += "JAVA_OPTS" -> "-Dfile.encoding=UTF-8 -Xmx4G",
45-
42+
githubWorkflowBuildMatrixFailFast := Some(false),
43+
githubWorkflowBuildMatrixAdditions += "command" -> List("udash-jvm/test", "udash-js/test", "guide-selenium/test"),
44+
githubWorkflowBuild := Seq(WorkflowStep.Sbt(
45+
commands = List("${{ matrix.command }}"),
46+
name = Some("Run tests"),
47+
)),
4648
githubWorkflowPublish := Seq(WorkflowStep.Sbt(
4749
List("ci-release"),
4850
env = Map(

0 commit comments

Comments
 (0)