Contributing Guide
October 28, 2024 ยท View on GitHub
Running the tests
- Update to latest scala-cli:
$ scala-cli update
or, if installed with Coursier:
$ cs update scala-cli
- Run the tests:
$ scala-cli test tests/CrossPlatform.test.sscala
Updating dependencies
-
You can update the Toolkit dependencies in
Toolkit.scala,Toolkit.js.scalaandToolkitTest.scala. The versions inToolkit.scalaandToolkit.js.scalashould be the same. -
After changing the dependencies, you must generate the changelog:
- Check that the config in
changelog/Config.scalais up-to-date:releaseVersionshould contain the latest released version anddevelopmentVersionshould contain the next version to release. - Run
scala-cli run changelog -- --overwriteto generate the changelog - If the generation fails because of illegal version bumps, you can add the development version in
exceptions.txtand runscala-cli run changelog -- --overwriteagain. (This won't be permitted anymore after 1.0.0 which will be the first stable version) - Commit and push the changes in the changelog
Releasing the Toolkit
-
Create a new release in the Github repo
-
Create a new
0.x.ytag in theChoose a tagdropdown list -
Copy, paste the release description below, and update the versions:
## Changes to direct dependencies for toolkit
- Updated `com.lihaoyi:os-lib` from `0.10.0` to `0.10.3`
- Updated `com.lihaoyi:upickle` from `3.3.0` to `3.3.1`
- Updated `com.softwaremill.sttp.client4:core` from `4.0.0-M14` to `4.0.0-M16`
- Updated `com.softwaremill.sttp.client4:upickle` from `4.0.0-M14` to `4.0.0-M16`
## Changes to direct dependencies for toolkit-test
- Updated `org.scalameta:munit` from `1.0.0-M11` to `1.0.0`
-
Validate by clicking the
Publish releasebutton. -
Check that the
Publish toolkitaction starts, and runs successfully. The new version should appear on Maven Central after some time.