Skip to content

Commit

Permalink
Merge pull request #528 from tkrs/move-it
Browse files Browse the repository at this point in the history
test: move it to it module
  • Loading branch information
tkrs authored Mar 25, 2024
2 parents 3b3f7fc + 8f70cb8 commit 77f3b38
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
setup:
runs-on: ubuntu-latest
outputs:
scala-versions: ${{ steps.set-scala-versions.outputs.versions }}
scala-versions: ${{ steps.set-scala-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- id: set-scala-versions
Expand All @@ -33,9 +33,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
java-version: "11"
distribution: "temurin"
cache: "sbt"
- run: sbt ++${{ matrix.scala }} coverage test
- run: sbt ++${{ matrix.scala }} examples/run
- run: sbt ++${{ matrix.scala }} coverageReport
Expand All @@ -47,23 +47,24 @@ jobs:
flags: unittests
fail_ci_if_error: true
verbose: true
- run: sbt ++${{ matrix.scala }} it/test
scalafmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
java-version: "11"
distribution: "temurin"
cache: "sbt"
- run: sbt scalafmtCheckAll
scalafix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
java-version: "11"
distribution: "temurin"
cache: "sbt"
- run: sbt "scalafixAll --check"
11 changes: 7 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import Dependencies._

lazy val fluflu = project
.in(file("."))
.configs(IntegrationTest)
.settings(Defaults.itSettings, inConfig(IntegrationTest)(scalafixConfigSettings(IntegrationTest)))
.settings(libraryDependencies ++= Pkg.forTest.map(_ % "it"))
.settings(
inThisBuild(
Seq(
Expand Down Expand Up @@ -44,7 +41,7 @@ lazy val fluflu = project
)
.settings(publish / skip := true)
.aggregate(core, msgpack, `msgpack-mess`)
.dependsOn(core, msgpack % "it->test", `msgpack-mess`)
.dependsOn(core, msgpack, `msgpack-mess`)

lazy val core = project
.in(file("modules/core"))
Expand Down Expand Up @@ -86,6 +83,12 @@ lazy val examples = project
.settings(coverageEnabled := false)
.dependsOn(core, `msgpack-mess`)

lazy val it = project
.in(file("modules/it"))
.settings(publish / skip := true)
.settings(libraryDependencies ++= Pkg.forTest)
.dependsOn(core, msgpack % "test->test", `msgpack-mess`)

lazy val compilerOptions = Seq(
"-deprecation",
"-encoding",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package fluflu.connection

import java.io.IOException
import java.net.InetSocketAddress
import java.nio.ByteBuffer
Expand Down

0 comments on commit 77f3b38

Please sign in to comment.