Skip to content

Commit 809047e

Browse files
authored
Merge branch 'master' into update/sbt-jmh-0.4.5
2 parents 5828493 + 93cf754 commit 809047e

File tree

5 files changed

+31
-89
lines changed

5 files changed

+31
-89
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,25 @@ jobs:
2929
runs-on: ${{ matrix.os }}
3030
steps:
3131
- name: Checkout current branch (full)
32-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3333
with:
3434
fetch-depth: 0
3535

3636
- name: Setup Java (temurin@11)
3737
if: matrix.java == 'temurin@11'
38-
uses: actions/setup-java@v2
38+
uses: actions/setup-java@v3
3939
with:
4040
distribution: temurin
4141
java-version: 11
42+
cache: sbt
4243

4344
- name: Setup Java (temurin@17)
4445
if: matrix.java == 'temurin@17'
45-
uses: actions/setup-java@v2
46+
uses: actions/setup-java@v3
4647
with:
4748
distribution: temurin
4849
java-version: 17
49-
50-
- name: Cache sbt
51-
uses: actions/cache@v2
52-
with:
53-
path: |
54-
~/.sbt
55-
~/.ivy2/cache
56-
~/.coursier/cache/v1
57-
~/.cache/coursier/v1
58-
~/AppData/Local/Coursier/Cache/v1
59-
~/Library/Caches/Coursier/v1
60-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
50+
cache: sbt
6151

6252
- name: Cache Redis
6353
uses: actions/cache@v2
@@ -80,19 +70,10 @@ jobs:
8070
run: ./install-redis.sh
8171

8272
- name: Check that workflows are up to date
83-
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
73+
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
8474

8575
- name: Build project
86-
run: sbt ++${{ matrix.scala }} test
87-
88-
- name: Compress target directories
89-
run: tar cf targets.tar macros/target core/js/target benchmark/js/target core/target benchmark/target spring/target analyzer/target mongo/target redis/target hocon/target .js/target target jetty/target .jvm/target mongo/js/target project/target
90-
91-
- name: Upload target directories
92-
uses: actions/upload-artifact@v2
93-
with:
94-
name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
95-
path: targets.tar
76+
run: sbt '++ ${{ matrix.scala }}' test
9677

9778
publish:
9879
name: Publish Artifacts
@@ -106,59 +87,29 @@ jobs:
10687
runs-on: ${{ matrix.os }}
10788
steps:
10889
- name: Checkout current branch (full)
109-
uses: actions/checkout@v2
90+
uses: actions/checkout@v3
11091
with:
11192
fetch-depth: 0
11293

11394
- name: Setup Java (temurin@11)
11495
if: matrix.java == 'temurin@11'
115-
uses: actions/setup-java@v2
96+
uses: actions/setup-java@v3
11697
with:
11798
distribution: temurin
11899
java-version: 11
100+
cache: sbt
119101

120102
- name: Setup Java (temurin@17)
121103
if: matrix.java == 'temurin@17'
122-
uses: actions/setup-java@v2
104+
uses: actions/setup-java@v3
123105
with:
124106
distribution: temurin
125107
java-version: 17
126-
127-
- name: Cache sbt
128-
uses: actions/cache@v2
129-
with:
130-
path: |
131-
~/.sbt
132-
~/.ivy2/cache
133-
~/.coursier/cache/v1
134-
~/.cache/coursier/v1
135-
~/AppData/Local/Coursier/Cache/v1
136-
~/Library/Caches/Coursier/v1
137-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
138-
139-
- name: Download target directories (2.13.11)
140-
uses: actions/download-artifact@v2
141-
with:
142-
name: target-${{ matrix.os }}-2.13.11-${{ matrix.java }}
143-
144-
- name: Inflate target directories (2.13.11)
145-
run: |
146-
tar xf targets.tar
147-
rm targets.tar
148-
149-
- name: Download target directories (2.12.18)
150-
uses: actions/download-artifact@v2
151-
with:
152-
name: target-${{ matrix.os }}-2.12.18-${{ matrix.java }}
153-
154-
- name: Inflate target directories (2.12.18)
155-
run: |
156-
tar xf targets.tar
157-
rm targets.tar
108+
cache: sbt
158109

159110
- env:
160111
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
161112
PGP_SECRET: ${{ secrets.PGP_SECRET }}
162113
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
163114
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
164-
run: sbt ++${{ matrix.scala }} ci-release
115+
run: sbt ci-release

analyzer/src/test/scala/com/avsystem/commons/analyzer/ImplicitTypesTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package analyzer
44
import org.scalatest.funsuite.AnyFunSuite
55

66
class ImplicitTypesTest extends AnyFunSuite with AnalyzerTest {
7-
ignore("implicit definitions without explicit types should be rejected") {
7+
test("implicit definitions without explicit types should be rejected") {
88
assertErrors(2,
99
"""
1010
|object whatever {

project/Commons.scala

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,24 @@ object Commons extends ProjectGroup("commons") {
2323
// option in IntelliJ's SBT settings.
2424
val forIdeaImport: Boolean = System.getProperty("idea.managed", "false").toBoolean && System.getProperty("idea.runid") == null
2525

26-
val collectionCompatVersion = "2.5.0"
27-
val guavaVersion = "31.1-jre"
26+
val collectionCompatVersion = "2.11.0"
27+
val guavaVersion = "32.1.1-jre"
2828
val jsr305Version = "3.0.2"
29-
val scalatestVersion = "3.2.12"
30-
val scalatestplusScalacheckVersion = "3.2.12.0"
31-
val scalacheckVersion = "1.16.0"
29+
val scalatestVersion = "3.2.16"
30+
val scalatestplusScalacheckVersion = "3.2.14.0"
31+
val scalacheckVersion = "1.17.0"
3232
val jettyVersion = "9.4.51.v20230217"
33-
val mongoVersion = "4.9.1"
33+
val mongoVersion = "4.10.1"
3434
val springVersion = "5.3.28"
3535
val typesafeConfigVersion = "1.4.2"
3636
val commonsIoVersion = "1.3.2" // test only
3737
val scalaLoggingVersion = "3.9.5"
3838
val akkaVersion = "2.6.19"
3939
val monixVersion = "3.4.1"
4040
val monixBioVersion = "1.2.0"
41-
val mockitoVersion = "3.9.0"
42-
val circeVersion = "0.13.0" // benchmark only
43-
val upickleVersion = "1.3.11" // benchmark only
44-
val scalajsBenchmarkVersion = "0.9.0"
41+
val circeVersion = "0.14.5" // benchmark only
42+
val upickleVersion = "3.1.2" // benchmark only
43+
val scalajsBenchmarkVersion = "0.10.0"
4544
val slf4jVersion = "1.7.36"
4645

4746
// for binary compatibility checking
@@ -80,6 +79,7 @@ object Commons extends ProjectGroup("commons") {
8079
githubWorkflowEnv ++= Map(
8180
"REDIS_VERSION" -> "6.2.12",
8281
),
82+
githubWorkflowArtifactUpload := false,
8383
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"), JavaSpec.temurin("17")),
8484
githubWorkflowBuildPreamble ++= Seq(
8585
WorkflowStep.Use(
@@ -161,7 +161,6 @@ object Commons extends ProjectGroup("commons") {
161161
"org.scalatest" %%% "scalatest" % scalatestVersion % Test,
162162
"org.scalacheck" %%% "scalacheck" % scalacheckVersion % Test,
163163
"org.scalatestplus" %%% "scalacheck-1-16" % scalatestplusScalacheckVersion % Test,
164-
"org.mockito" % "mockito-core" % mockitoVersion % Test,
165164
),
166165
ideBasePackages := Seq(organization.value),
167166
Compile / ideOutputDirectory := Some(target.value.getParentFile / "out/production"),
@@ -221,8 +220,6 @@ object Commons extends ProjectGroup("commons") {
221220
analyzer,
222221
macros,
223222
`core-js`,
224-
benchmark,
225-
`benchmark-js`,
226223
comprof,
227224
),
228225
)
@@ -237,15 +234,13 @@ object Commons extends ProjectGroup("commons") {
237234
hocon,
238235
spring,
239236
redis,
240-
benchmark,
241237
)
242238
.settings(aggregateProjectSettings)
243239

244240
lazy val js = mkSubProject.in(file(".js"))
245241
.aggregate(
246242
`core-js`,
247243
`mongo-js`,
248-
`benchmark-js`,
249244
)
250245
.settings(aggregateProjectSettings)
251246

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# suppress inspection "UnusedProperty"
2-
sbt.version=1.8.2
2+
sbt.version=1.8.3

project/plugins.sbt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
val scalaJSVersion: String =
2-
Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.10.1")
3-
41
logLevel := Level.Warn
52

63
addSbtPlugin("com.github.ghik" % "sbt-nosbt" % "0.2.1")
7-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
4+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.2")
85
addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1")
96
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.5")
10-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")
11-
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
12-
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.9.2")
13-
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.2")
14-
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.8")
15-
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
7+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
8+
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
9+
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.2")
10+
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3")
11+
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.15.0")

0 commit comments

Comments
 (0)