Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sbt-github-actions #66

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Conversation

mdedetrich
Copy link
Contributor

This PR uses sbt-github-actions to do tests and publishing, it copies an existing configuration from an sbt plugin so its known to work (i.e. see https://github.com/sbt/sbt-license-report/blob/main/build.sbt#L57-L87)

@mdedetrich mdedetrich force-pushed the use-sbt-github-actions branch from 55eec29 to 588f93c Compare October 18, 2024 14:27
build.sbt Outdated
@@ -1,8 +1,9 @@
ThisBuild / organization := Organization.organization
ThisBuild / organizationName := Organization.organizationName
ThisBuild / organizationHomepage := Organization.organizationHomepage
ThisBuild / version := "0.4.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.19"
val scala212 = "2.12.19"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed so that sbt-github-actions plays well with the scala versions

@mdedetrich mdedetrich force-pushed the use-sbt-github-actions branch 4 times, most recently from 0e6527d to fa99fd3 Compare October 18, 2024 14:39
@@ -23,13 +24,43 @@ lazy val root = (project in file("."))
)
},
scriptedBufferLog := false,
scriptedSbt := "1.10.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically speaking we could find the lowest sbt version that this plugin can support and set scriptedSbt to this version but honestly I don't think its needed, anyone who will use this plugin will likely be running latest version of sbt anyways and we can always fix this later if needed

@mdedetrich
Copy link
Contributor Author

mdedetrich commented Oct 18, 2024

Hmm the scripted tests are still failing with [info] [error] java.lang.IllegalArgumentException: requirement failed: root is failed., will look into it later.

@raboof Feel free to add onto this PR if you find the root cause, I am off for the day

@mdedetrich mdedetrich force-pushed the use-sbt-github-actions branch from fa99fd3 to 674f2c5 Compare October 18, 2024 15:02
@raboof raboof force-pushed the use-sbt-github-actions branch from 5c4ab89 to b3bf4b5 Compare October 18, 2024 15:15
@raboof raboof merged commit c523478 into sbt:main Oct 18, 2024
13 checks passed
@mdedetrich mdedetrich deleted the use-sbt-github-actions branch October 18, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants