Skip to content

Commit

Permalink
Point source maps to github (#20)
Browse files Browse the repository at this point in the history
* Point source maps to github URLs

* Disable doc link warnings

Needed for +publishLocal to work
  • Loading branch information
raquo authored Mar 2, 2024
1 parent 70cc8c2 commit 8fa0042
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches: [publish]
tags: ["*"]
env:
CI: true
jobs:
publish:
runs-on: ubuntu-20.04
Expand All @@ -16,4 +18,4 @@ jobs:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3 changes: 3 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ '**' ]

env:
CI: true

jobs:
build:

Expand Down
12 changes: 12 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,20 @@ lazy val `url-dsl` = crossProject(JSPlatform, JVMPlatform)
"org.scalatest" %%% "scalatest" % "3.2.14" % Test,
"org.scalacheck" %%% "scalacheck" % "1.17.0" % Test,
"org.scalameta" %%% "munit" % "0.7.29" % Test
),
(Compile / doc / scalacOptions) ++= Seq(
"-no-link-warnings" // Suppress scaladoc "Could not find any member to link for" warnings
)
)
.jsSettings(
scalacOptions ++= sys.env.get("CI").map { _ =>
val localSourcesPath = (LocalRootProject / baseDirectory).value.toURI
val remoteSourcesPath = s"https://raw.githubusercontent.com/sherpal/url-dsl/${git.gitHeadCommit.value.get}/"
val sourcesOptionName = if (scalaVersion.value.startsWith("2.")) "-P:scalajs:mapSourceURI" else "-scalajs-mapSourceURI"

s"${sourcesOptionName}:$localSourcesPath->$remoteSourcesPath"
}
)
.jvmSettings(
coverageFailOnMinimum := true,
coverageMinimumStmtTotal := 99,
Expand Down

0 comments on commit 8fa0042

Please sign in to comment.