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

Merge master to dotty branch #446

Merged
merged 88 commits into from
Feb 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
b6d49a6
Update shapeless to 2.3.6 (#328)
scala-steward May 9, 2021
5ea0427
Update sbt to 1.5.2 (#329)
scala-steward May 10, 2021
dbb19aa
Update kind-projector to 0.12.0
scala-steward May 13, 2021
819b928
Merge pull request #332 from scala-steward/update/kind-projector-0.12.0
larsrh May 13, 2021
0506370
Update sbt-mima-plugin to 0.9.1 (#333)
scala-steward May 13, 2021
51243f6
Update discipline-munit to 1.0.9 (#335)
scala-steward May 13, 2021
9c750eb
Update alleycats-core, cats-core, ... to 2.6.1 (#334)
scala-steward May 13, 2021
598d05b
Update kind-projector to 0.13.0 (#337)
scala-steward May 15, 2021
135e856
Update shapeless to 2.3.7 (#338)
scala-steward May 17, 2021
f00741c
Update scala-library, scala-reflect to 2.13.6 (#339)
scala-steward May 19, 2021
098bc17
Add VSCode .ignore files (#344)
joroKr21 May 21, 2021
67d3d20
Update sbt-github-actions to 0.11.0 (#348)
scala-steward May 24, 2021
e003cbe
Update sbt-mima-plugin to 0.9.2 (#350)
scala-steward May 26, 2021
50bd397
Update scala-library, scala-reflect to 2.12.14 (#351)
scala-steward May 31, 2021
589b76b
Update sbt to 1.5.3 (#352)
scala-steward Jun 1, 2021
ae083b2
Update sbt-github-actions to 0.12.0
scala-steward Jun 1, 2021
de20cc2
Regenerate workflow with sbt-github-actions
scala-steward Jun 1, 2021
699fefc
Merge pull request #354 from scala-steward/update/sbt-github-actions-…
larsrh Jun 2, 2021
a24fb7a
Update sbt-scalajs, scalajs-library, ... to 1.6.0
scala-steward Jun 8, 2021
e9ebf49
Merge pull request #364 from scala-steward/update/sbt-scalajs-1.6.0
larsrh Jun 9, 2021
0c958fd
Update sbt to 1.5.4 (#365)
scala-steward Jun 14, 2021
42b81b3
Update sbt-scala-native-crossproject, ... to 1.1.0 (#366)
scala-steward Jul 3, 2021
db4a4f2
Update sbt-scalafmt to 2.4.3 (#367)
scala-steward Jul 9, 2021
a20a3ef
Update sbt to 1.5.5 (#368)
scala-steward Jul 12, 2021
1576bec
Update sbt-scalajs, scalajs-compiler, ... to 1.7.0 (#369)
scala-steward Aug 4, 2021
34aa1db
Update sbt-github-actions to 0.13.0 (#370)
scala-steward Aug 15, 2021
3c36ce3
Update scalafmt-core to 3.0.0 (#371)
scala-steward Aug 19, 2021
445f630
Update sbt-mima-plugin to 1.0.0 (#372)
scala-steward Aug 25, 2021
07e77c4
Update kind-projector to 0.13.1 (#373)
scala-steward Aug 27, 2021
e2e8bbe
Update scalafmt-core to 3.0.1 (#378)
scala-steward Aug 27, 2021
22bdc37
Update kind-projector to 0.13.2 (#381)
scala-steward Sep 4, 2021
38e4973
Update scalafmt-core to 3.0.2 (#380)
scala-steward Sep 4, 2021
fd90018
Update scalafmt-core to 3.0.3 (#382)
scala-steward Sep 11, 2021
ee37778
Update scalafmt-core to 3.0.4 (#384)
scala-steward Sep 17, 2021
210658e
Update scala-library, scala-reflect to 2.12.15 (#383)
scala-steward Sep 20, 2021
fcf2f58
Update sbt-ci-release to 1.5.9 (#385)
scala-steward Sep 23, 2021
a9345b7
Update scalafmt-core to 3.0.5 (#386)
scala-steward Sep 25, 2021
d8c8853
Remove unnecessary instance (#388)
joroKr21 Sep 26, 2021
a5368c7
Update scalafmt-core to 3.0.6 (#390)
scala-steward Oct 3, 2021
449954f
Update sbt-mima-plugin to 1.0.1 (#391)
scala-steward Oct 6, 2021
94c888f
Update sbt-scalajs, scalajs-compiler, ... to 1.7.1 (#392)
scala-steward Oct 7, 2021
aa1c3a7
Update sbt-ci-release to 1.5.10 (#396)
scala-steward Oct 14, 2021
f14b118
Update scalafmt-core to 3.0.7 (#397)
scala-steward Oct 21, 2021
ef0d2da
Update auxlib, javalib, nativelib, nscplugin, ... to 0.4.1 (#398)
scala-steward Oct 21, 2021
ca0ef5f
Update scalafmt-core to 3.0.8 (#399)
scala-steward Oct 30, 2021
efa6019
Update scala-library, scala-reflect to 2.13.7 (#400)
scala-steward Nov 3, 2021
333bd1d
Update scalafmt-core to 3.1.1 (#403)
scala-steward Nov 15, 2021
e50f2b4
Update sbt-scalafmt to 2.4.4 (#404)
scala-steward Nov 19, 2021
c4903a0
Update scalafmt-core to 3.1.2 (#405)
scala-steward Nov 22, 2021
846ec21
Update alleycats-core, cats-core, ... to 2.7.0 (#406)
scala-steward Nov 28, 2021
26b59b1
Update scalafmt-core to 3.2.0 (#407)
scala-steward Nov 30, 2021
bdd279b
Update sbt-github-actions to 0.14.2 (#409)
scala-steward Dec 2, 2021
ef5bd23
Update scalafmt-core to 3.2.1 (#410)
scala-steward Dec 4, 2021
47633a9
Update sbt-scalafmt to 2.4.5 (#411)
scala-steward Dec 4, 2021
a597d2e
Update auxlib, javalib, nativelib, nscplugin, ... to 0.4.2 (#412)
scala-steward Dec 7, 2021
7b8b3a8
Update sbt to 1.5.6 (#413)
scala-steward Dec 10, 2021
4ec1e22
Update sbt-scalajs, scalajs-compiler, ... to 1.8.0 (#414)
scala-steward Dec 11, 2021
5d05071
Update sbt to 1.5.7 (#415)
scala-steward Dec 15, 2021
649ff51
Update sbt to 1.5.8 (#416)
scala-steward Dec 21, 2021
c5b9ea2
Update scalafmt-core to 3.2.2 (#417)
scala-steward Dec 23, 2021
2204752
Update scalafmt-core to 3.3.0 (#419)
scala-steward Dec 25, 2021
b787b3a
Update sbt-scalafmt to 2.4.6 (#418)
scala-steward Dec 25, 2021
0156345
Update sbt to 1.6.0 (#420)
scala-steward Dec 27, 2021
4a2f403
Update sbt to 1.6.1 (#421)
scala-steward Dec 29, 2021
0db7d49
Update scalafmt-core to 3.3.1 (#424)
scala-steward Jan 2, 2022
c61791e
Update scala-library, scala-reflect to 2.13.8 (#426)
scala-steward Jan 13, 2022
890f6ca
Update scalafmt-core to 3.3.2 (#428)
scala-steward Jan 20, 2022
140c3cd
Update auxlib, javalib, nativelib, nscplugin, ... to 0.4.3 (#430)
scala-steward Jan 22, 2022
70e0073
Update scalafmt-core to 3.3.3 (#431)
scala-steward Jan 22, 2022
2a8377a
Update scalafmt-core to 3.4.0 (#432)
scala-steward Jan 30, 2022
b870d75
Update sbt to 1.6.2 (#434)
scala-steward Feb 1, 2022
8bf3ca1
Migrate to sbt-typelevel-ci-release (#429)
armanbilge Feb 6, 2022
d88292e
Update scalafmt-core to 3.4.2 (#436)
scala-steward Feb 6, 2022
e14abe2
Use predefined Apache 2 license (#437)
joroKr21 Feb 6, 2022
e4ce051
Enable snapshots on master (#438)
armanbilge Feb 6, 2022
cb4f8c2
Update sbt-typelevel-ci-release to 0.4.4 (#442)
scala-steward Feb 10, 2022
5fd152b
Update sbt-typelevel-ci-release to 0.4.5 (#443)
scala-steward Feb 12, 2022
3145a00
Update scalafmt-core to 3.4.3 (#444)
scala-steward Feb 12, 2022
60a3def
Update shapeless to 2.3.8 (#445)
scala-steward Feb 13, 2022
b9df85f
Merge branch 'master' into dotty
joroKr21 Feb 13, 2022
7d881b7
Reformat
joroKr21 Feb 13, 2022
157e5a8
Release from Dotty branch
joroKr21 Feb 13, 2022
cb48f0a
Update Scala.js to 1.9.0
joroKr21 Feb 13, 2022
ebda79b
Regenerate workflow
joroKr21 Feb 13, 2022
107f197
Specify Munit version explicitly
joroKr21 Feb 13, 2022
bfe9840
Don't override scalacOptions
joroKr21 Feb 13, 2022
3f3d1e1
Check sbt formatting in root project
joroKr21 Feb 13, 2022
8fc4dd6
githubWorkflowGenerate
joroKr21 Feb 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 128 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ name: Continuous Integration

on:
pull_request:
branches: ['*']
branches: ['**']
push:
branches: ['*']
branches: ['**']
tags: [v*]

env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_CREDENTIAL_HOST: ${{ secrets.SONATYPE_CREDENTIAL_HOST }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
Expand All @@ -23,20 +28,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.15, 2.13.8, 3.1.0]
java: [adopt@1.8]
ci: [test]
scala: [2.12.15, 2.13.8, 3.1.1]
java: [temurin@8]
project: [rootJS, rootJVM]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
- name: Setup Java (temurin@8)
if: matrix.java == 'temurin@8'
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: temurin
java-version: 8

- name: Cache sbt
uses: actions/cache@v2
Expand All @@ -51,31 +58,63 @@ jobs:
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Check that workflows are up to date
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
run: sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' 'project /' githubWorkflowCheck

- name: Validation
run: sbt ++${{ matrix.scala }} '${{ matrix.ci }}'
- name: Check formatting
run: sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' scalafmtCheckAll root/scalafmtSbtCheck

- name: scalaJSLink
if: matrix.project == 'rootJS'
run: sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' Test/scalaJSLinkerResult

- name: Test
run: sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' test

- name: Check binary compatibility
if: matrix.java == 'temurin@8'
run: sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' mimaReportBinaryIssues

- name: Generate API documentation
if: matrix.java == 'temurin@8'
run: sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' doc

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/dotty')
run: mkdir -p target .js/target core/.js/target core/.jvm/target .jvm/target .native/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/dotty')
run: tar cf targets.tar target .js/target core/.js/target core/.jvm/target .jvm/target .native/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/dotty')
uses: actions/upload-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
path: targets.tar

publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/dotty')
strategy:
matrix:
os: [ubuntu-latest]
scala: [3.1.0]
java: [adopt@1.8]
scala: [3.1.1]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
- name: Setup Java (temurin@8)
if: matrix.java == 'temurin@8'
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: temurin
java-version: 8

- name: Cache sbt
uses: actions/cache@v2
Expand All @@ -89,11 +128,76 @@ jobs:
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- uses: olafurpg/setup-gpg@v3
- name: Download target directories (2.12.15, rootJS)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.15-rootJS

- name: Inflate target directories (2.12.15, rootJS)
run: |
tar xf targets.tar
rm targets.tar

- name: Download target directories (2.12.15, rootJVM)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.15-rootJVM

- name: Inflate target directories (2.12.15, rootJVM)
run: |
tar xf targets.tar
rm targets.tar

- name: Download target directories (2.13.8, rootJS)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.8-rootJS

- name: Inflate target directories (2.13.8, rootJS)
run: |
tar xf targets.tar
rm targets.tar

- name: Download target directories (2.13.8, rootJVM)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.8-rootJVM

- name: Inflate target directories (2.13.8, rootJVM)
run: |
tar xf targets.tar
rm targets.tar

- name: Download target directories (3.1.1, rootJS)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3.1.1-rootJS

- name: Inflate target directories (3.1.1, rootJS)
run: |
tar xf targets.tar
rm targets.tar

- name: Download target directories (3.1.1, rootJVM)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3.1.1-rootJVM

- name: Inflate target directories (3.1.1, rootJVM)
run: |
tar xf targets.tar
rm targets.tar

- name: Import signing key
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
run: echo $PGP_SECRET | base64 -di | gpg --import

- name: Import signing key and strip passphrase
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE != ''
run: |
echo "$PGP_SECRET" | base64 -di > /tmp/signing-key.gpg
echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg
(echo "$PGP_PASSPHRASE"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase $(gpg --list-secret-keys --with-colons 2> /dev/null | grep '^sec:' | cut --delimiter ':' --fields 5 | tail -n 1)

- env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: sbt ++${{ matrix.scala }} ci-release
- name: Publish
run: sbt '++${{ matrix.scala }}' tlRelease
2 changes: 1 addition & 1 deletion .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
printf "Deleting '%s' #%d, %'d bytes\n" $name ${ARTCOUNT[$name]} $size
ghapi -X DELETE $REPO/actions/artifacts/$id
done
done
done
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ target/
*.iml
*.iws

# Ignore project files for VSCode
.bloop
.bsp
.metals
.vscode
metals.sbt

# Ignore OS X metadata
.DS_Store

Expand Down
1 change: 0 additions & 1 deletion .sbtrc

This file was deleted.

5 changes: 3 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "3.0.0"
runner.dialect = "scala3"
version = "3.4.3"
runner.dialect = scala3
align.preset = none
maxColumn = 120
includeNoParensInSelectChains = false
Expand All @@ -10,3 +10,4 @@ rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.generalExpressions = true
rewriteTokens = { "⇒": "=>", "→": "->", "←": "<-" }
fileOverride { "glob:**/*.sbt" { runner.dialect = scala212 } }
91 changes: 24 additions & 67 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ import sbt._

val scala212 = "2.12.15"
val scala213 = "2.13.8"
val scala3 = "3.1.0"
val scala3 = "3.1.1"

ThisBuild / crossScalaVersions := Seq(scala212, scala213, scala3)
ThisBuild / scalaVersion := scala3

lazy val buildSettings = Seq(
organization := "org.typelevel"
)
ThisBuild / tlBaseVersion := "3.0"
ThisBuild / organization := "org.typelevel"

val catsVersion = "2.7.0"
val munitVersion = "0.7.29"
val disciplineMunitVersion = "1.0.9"
val kindProjectorVersion = "0.13.2"
val shapeless2Version = "2.3.7"
val shapeless2Version = "2.3.8"
val shapeless3Version = "3.0.4"

lazy val commonSettings = Seq(
scalacOptions := Seq(
scalacOptions ++= Seq(
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
Expand All @@ -39,7 +38,8 @@ lazy val commonSettings = Seq(
"org.typelevel" %%% "cats-core" % catsVersion,
"org.typelevel" %%% "alleycats-core" % catsVersion,
"org.typelevel" %%% "cats-testkit" % catsVersion % Test,
"org.typelevel" %%% "discipline-munit" % disciplineMunitVersion % Test
"org.typelevel" %%% "discipline-munit" % disciplineMunitVersion % Test,
"org.scalameta" %%% "munit" % munitVersion % Test
),
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) =>
Expand All @@ -51,36 +51,19 @@ lazy val commonSettings = Seq(
compilerPlugin(("org.typelevel" %% "kind-projector" % kindProjectorVersion).cross(CrossVersion.full))
)
}),
Test / parallelExecution := false,
versionScheme := Some("semver-spec"),
mimaPreviousArtifacts := Set(organization.value %% moduleName.value % "2.2.1")
Test / parallelExecution := false
)

console / initialCommands := """import shapeless._, cats._, cats.derived._"""

lazy val commonJsSettings = Seq(
Global / scalaJSStage := FastOptStage,
Test / scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule))
)

lazy val coreSettings =
Seq.concat(buildSettings, commonSettings, crossVersionSharedSources, publishSettings)

lazy val kittens = project
.in(file("."))
.aggregate(coreJVM)
.dependsOn(coreJVM)
.settings(coreSettings: _*)
.settings(noPublishSettings)
lazy val root = tlCrossRootProject.aggregate(core)

lazy val core = crossProject(JVMPlatform)
lazy val core = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.settings(moduleName := "kittens")
.settings(coreSettings: _*)

lazy val coreJVM = core.jvm
.settings(commonSettings: _*)

addCommandAlias("root", ";project kittens")
addCommandAlias("root", ";project /")
addCommandAlias("jvm", ";project coreJVM")
addCommandAlias("js", ";project coreJS")
addCommandAlias("native", ";project coreNative")
Expand All @@ -95,43 +78,17 @@ addCommandAlias("mima", "coreJVM/mimaReportBinaryIssues")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll")

lazy val crossVersionSharedSources: Seq[Setting[_]] = Seq(Compile, Test).map { sc =>
(sc / unmanagedSourceDirectories) ++= (sc / unmanagedSourceDirectories).value.map { dir: File =>
new File(dir.getPath + "-" + scalaBinaryVersion.value.head)
}
}

lazy val publishSettings = Seq(
Test / publishArtifact := false,
pomIncludeRepository := (_ => false),
homepage := Some(url("https://github.com/typelevel/kittens")),
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
scmInfo := Some(ScmInfo(url("https://github.com/typelevel/kittens"), "scm:git:git@github.com:typelevel/kittens.git")),
developers := List(
Developer("milessabin", "Miles Sabin", "", url("http://milessabin.com/blog")),
Developer("kailuowang", "Kai(luo) Wang", "kailuo.wang@gmail.com", url("http://kailuowang.com/")),
Developer("joroKr21", "Georgi Krastev", "joro.kr.21@gmail.com", url("https://twitter.com/Joro_Kr"))
)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
Developer("milessabin", "Miles Sabin", "", url("http://milessabin.com/blog")),
Developer("kailuowang", "Kai(luo) Wang", "kailuo.wang@gmail.com", url("http://kailuowang.com/")),
Developer("joroKr21", "Georgi Krastev", "joro.kr.21@gmail.com", url("https://twitter.com/Joro_Kr"))
)

lazy val noPublishSettings =
publish / skip := true

ThisBuild / githubWorkflowJavaVersions := Seq("adopt@1.8")
ThisBuild / githubWorkflowArtifactUpload := false
ThisBuild / githubWorkflowBuildMatrixAdditions += "ci" -> List("test")
ThisBuild / githubWorkflowBuild := List(WorkflowStep.Sbt(List("${{ matrix.ci }}"), name = Some("Validation")))
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v")))
ThisBuild / githubWorkflowPublishPreamble += WorkflowStep.Use(UseRef.Public("olafurpg", "setup-gpg", "v3"))
ThisBuild / githubWorkflowPublish := Seq(
ThisBuild / tlCiReleaseBranches := Seq("dotty")
ThisBuild / githubWorkflowBuild ~= { steps =>
WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)
)
List("scalafmtCheckAll", "root/scalafmtSbtCheck"),
name = Some("Check formatting")
) +: steps
}
Loading