Skip to content

Commit

Permalink
Run localstack and integration tests in Actions (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
majk-p authored Jun 8, 2022
1 parent 16c74d9 commit c4f6207
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
if: matrix.java == 'graalvm@11'
run: sbt '++${{ matrix.scala }}' doc

- name: Integration tests
run: sbt '++${{ matrix.scala }}' IntegrationTest/test

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p core/target addons/phobos/target target addons/extra/target demo/target addons/plaintext/target connectors/sns/target mdoc/target addons/s3proxy/target connectors/kinesis/target connectors/sqs/target kernel/target addons/logging/target connectors/activemq/target addons/circe/target high/target project/target
Expand Down
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ ThisBuild / homepage := Some(url("https://github.com/ocadotechnology/sttp-oauth2
val Scala213 = "2.13.8"
ThisBuild / scalaVersion := Scala213
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.graalvm("11"))
ThisBuild / githubWorkflowBuild ++= Seq(
WorkflowStep.Sbt(
commands = List("IntegrationTest/test"),
name = Some("Integration tests")
)
)

val Versions = new {
val Log4Cats = "2.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object LocalStackContainerUtils {
private def createContainer(services: Seq[LocalStackV2Container.Service]): IO[LocalStackV2Container] =
IO {
val c = LocalStackV2Container(tag = "0.12.20", services = services)
c.container.setDockerImageName("mirror-hub.docker.tech.lastmile.com/localstack/localstack:0.12.20")
c.container.setDockerImageName("localstack/localstack:0.12.20")
c
}

Expand Down

0 comments on commit c4f6207

Please sign in to comment.