Skip to content

Commit

Permalink
Separate aggregates for regular modules and for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Dec 15, 2023
1 parent d4a4f40 commit 63ff5fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Code style check, compilation and binary-compatibility check
run: sbt "scalafmtCheckAll;headerCheckAll;+Test/compile;+IntegrationTest/compile;mimaReportBinaryIssues"

- name: Code style check, compilation for integration tests
run: sbt "akka-management-integration/scalafmtCheckAll;akka-management-integration/headerCheckAll;+akka-management-integration/Test/compile"

check-docs:
name: Check Docs
runs-on: ubuntu-22.04
Expand Down
24 changes: 16 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ lazy val `akka-management-root` = project
`akka-management-pki`,
`loglevels-logback`,
`loglevels-log4j2`,
`integration-test-aws-api-ec2-tag-based`,
`integration-test-local`,
`integration-test-aws-api-ecs`,
`integration-test-kubernetes-api`,
`integration-test-kubernetes-api-java`,
`integration-test-kubernetes-dns`,
`integration-test-marathon-api-docker`,
`integration-test-rolling-update-kubernetes`,
`cluster-http`,
`cluster-bootstrap`,
`rolling-update-kubernetes`,
Expand All @@ -46,6 +38,22 @@ lazy val `akka-management-root` = project
publish / skip := true
)

// integration tests separated so they don't run on `test` in root project
// also, none of these are published artifacts
lazy val `akka-management-integration` = project
.in(file("integration-test"))
.disablePlugins(MimaPlugin, com.geirsson.CiReleasePlugin)
.aggregate(
`integration-test-aws-api-ec2-tag-based`,
`integration-test-local`,
`integration-test-aws-api-ecs`,
`integration-test-kubernetes-api`,
`integration-test-kubernetes-api-java`,
`integration-test-kubernetes-dns`,
`integration-test-marathon-api-docker`,
`integration-test-rolling-update-kubernetes`
)

lazy val mimaPreviousArtifactsSet =
mimaPreviousArtifacts := Set(
organization.value %% name.value % previousStableVersion.value.getOrElse(
Expand Down

0 comments on commit 63ff5fb

Please sign in to comment.