Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVA_OPTS: '-Dfile.encoding=UTF-8 -Xmx4G'

jobs:
build:
name: Build and Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
scala: [2.13.16]
Expand Down Expand Up @@ -60,12 +62,10 @@ jobs:
uses: sbt/setup-sbt@v1

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
uses: actions/setup-node@v4

- name: Setup MongoDB
uses: supercharge/mongodb-github-action@1.12.0
uses: supercharge/mongodb-github-action@1.12.1
with:
mongodb-version: 8.0
mongodb-replica-set: test-rs
Expand Down
11 changes: 4 additions & 7 deletions project/Commons.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,27 @@ object Commons extends ProjectGroup("commons") {
),

scalaVersion := "2.13.16",
compileOrder := CompileOrder.Mixed,

githubWorkflowTargetTags ++= Seq("v*"),

githubWorkflowArtifactUpload := false,
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"), JavaSpec.temurin("21"), JavaSpec.temurin("25")),
githubWorkflowEnv += "JAVA_OPTS" -> "-Dfile.encoding=UTF-8 -Xmx4G",
githubWorkflowBuildMatrixFailFast := Some(false),
githubWorkflowBuildPreamble ++= Seq(
WorkflowStep.Use(
UseRef.Public("actions", "setup-node", "v2"),
UseRef.Public("actions", "setup-node", "v4"),
name = Some("Setup Node.js"),
params = Map("node-version" -> "12")
),
WorkflowStep.Use(
UseRef.Public("supercharge", "mongodb-github-action", "1.12.0"),
UseRef.Public("supercharge", "mongodb-github-action", "1.12.1"),
name = Some("Setup MongoDB"),
params = Map(
"mongodb-version" -> "8.0",
"mongodb-replica-set" -> "test-rs",
)
),
),

githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),

githubWorkflowPublish := Seq(WorkflowStep.Sbt(
List("ci-release"),
env = Map(
Expand Down