Skip to content

Commit

Permalink
Added scalatest stub, with GoldenSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Feb 8, 2024
1 parent 812bad2 commit 9772874
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,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 core/native/target core/js/target core/jvm/target project/target
run: mkdir -p scalatest/jvm/target core/native/target core/js/target scalatest/native/target core/jvm/target scalatest/js/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 core/native/target core/js/target core/jvm/target project/target
run: tar cf targets.tar scalatest/jvm/target core/native/target core/js/target scalatest/native/target core/jvm/target scalatest/js/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
16 changes: 13 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ inThisBuild(List(
tlSitePublishBranch := Some(mainBranch),
))

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

lazy val commonSettings = Seq(
headerLicenseStyle := HeaderLicenseStyle.SpdxSyntax,
Expand All @@ -40,10 +40,20 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("core"))
.settings(
name := "golden-scala",
name := "golden-core",
commonSettings,
libraryDependencies ++= Seq(
)

lazy val scalatest = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.dependsOn(core)
.in(file("scalatest"))
.settings(
name := "golden-scalatest",
commonSettings,
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % "3.2.17"
)
)

Expand Down
8 changes: 8 additions & 0 deletions scalatest/shared/src/main/scala/test/golden/GoldenSuite.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright 2024 Golden Scala Contributors <https://github.com/j-mie6/golden-scala/graphs/contributors>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package test.golden.scalatest

class GoldenSuite

0 comments on commit 9772874

Please sign in to comment.