-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into out-folder-content-reproducible
- Loading branch information
Showing
21 changed files
with
323 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # daily | ||
workflow_dispatch: | ||
|
||
name: Scala Steward | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
scala-steward: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- uses: scala-steward-org/scala-steward-action@v2.71.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package build | ||
import mill._, scalalib._, scalajslib._ | ||
import mill.scalajslib.api._ | ||
|
||
|
||
object wasm extends ScalaJSModule { | ||
override def scalaVersion = "2.13.14" | ||
|
||
override def scalaJSVersion = "1.17.0" | ||
|
||
override def moduleKind = ModuleKind.ESModule | ||
|
||
override def moduleSplitStyle = ModuleSplitStyle.FewestModules | ||
|
||
override def scalaJSExperimentalUseWebAssembly = true | ||
} | ||
|
||
// This build defines a single `ScalaJSModule` that uses the `WASM` backend of the scala JS linker. | ||
// The release notes that introduced scalaJS wasm are here; | ||
// https://www.scala-js.org/news/2024/09/28/announcing-scalajs-1.17.0/ | ||
// and are worth reading. They include information such as the scala JS requirements to successfully emit wasm, | ||
// the flags needed to run in browser and the minimum node version (22) required to actually run the wasm output. | ||
|
||
/** Usage | ||
|
||
> ./mill show wasm.fastLinkJS # mac/linux | ||
{ | ||
... | ||
..."jsFileName": "main.js", | ||
... | ||
"dest": ".../out/wasm/fastLinkJS.dest" | ||
} | ||
|
||
> node --experimental-wasm-exnref out/wasm/fastLinkJS.dest/main.js # mac/linux | ||
hello wasm! | ||
|
||
*/ | ||
|
||
// Here we see that scala JS emits a single WASM module, as well as a loader and main.js file. | ||
// `main.js` is the entry point of the program, and calls into the wasm module. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package wasm | ||
|
||
object wasm { | ||
def main(args: Array[String]): Unit = { | ||
println("hello wasm!") | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
kotlinlib/test/resources/hello-world-kotlin/main/kotest/src/FooTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package hello.tests | ||
|
||
import io.kotest.core.spec.style.FunSpec | ||
import io.kotest.matchers.shouldBe | ||
import hello.getHelloString | ||
|
||
class FooTest : FunSpec({ | ||
test("testFailure") { | ||
getHelloString() shouldBe "Hello, world!" | ||
} | ||
|
||
test("testSuccess") { | ||
getHelloString() shouldBe "WRONG!" | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.