Skip to content

Commit

Permalink
Removed core, which is empty; added reference to snapshot-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Feb 10, 2024
1 parent 4511947 commit fec35c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ jobs:

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p scalatest/jvm/target core/native/target scalatest/native/target core/jvm/target project/target
run: mkdir -p scalatest/jvm/target scalatest/native/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: tar cf targets.tar scalatest/jvm/target core/native/target scalatest/native/target core/jvm/target project/target
run: tar cf targets.tar scalatest/jvm/target scalatest/native/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# golden-scala
Golden Testing for ScalaTest (and maybe more?)
Golden Testing for ScalaTest via a simple `x should matchGolden (filename)`

For build-system integration, check out <https://github.com/indoorvivants/snapshot-testing>
9 changes: 4 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inThisBuild(List(
tlSitePublishBranch := None, //Some(mainBranch),
))

lazy val root = tlCrossRootProject.aggregate(core, scalatest)
lazy val root = tlCrossRootProject.aggregate(/*core, */scalatest)

lazy val commonSettings = Seq(
headerLicenseStyle := HeaderLicenseStyle.SpdxSyntax,
Expand All @@ -34,19 +34,19 @@ lazy val commonSettings = Seq(
resolvers ++= Opts.resolver.sonatypeOssReleases,
)

lazy val core = crossProject(JVMPlatform, NativePlatform)
/*lazy val core = crossProject(JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("core"))
.settings(
name := "golden-core",
commonSettings,
)
)*/

lazy val scalatest = crossProject(JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.dependsOn(core)
//.dependsOn(core)
.in(file("scalatest"))
.settings(
name := "golden-scalatest",
Expand All @@ -61,5 +61,4 @@ lazy val docs = project.in(file("site"))
.settings(
tlFatalWarnings := githubIsWorkflowBuild.value,
tlSiteKeepFiles := false, // FIXME: disable

)

0 comments on commit fec35c3

Please sign in to comment.