Skip to content

Commit 9219a11

Browse files
authored
Merge pull request #427 from greshny-forks/optimize-github-actions
Update Scala versions and Redpanda container image
2 parents 2ff92a8 + 67f0130 commit 9219a11

File tree

5 files changed

+13
-872
lines changed

5 files changed

+13
-872
lines changed

.github/workflows/ci-release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
distribution: temurin
1818
java-version: 8
1919
cache: sbt
20-
- run: ./sbt ci-release
20+
- name: Setup sbt launcher
21+
uses: sbt/setup-sbt@v1
22+
- run: sbt ci-release
2123
env:
2224
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
2325
PGP_SECRET: ${{ secrets.PGP_SECRET }}

.github/workflows/test.yml

+7-17
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
15-
java:
16-
- 8
17-
- 11
18-
- 17
19-
15+
scala: [2.12.20, 2.13.16, 3.3.5]
16+
java: [8, 11, 17]
2017
runs-on: ${{ matrix.os }}
2118
steps:
2219
- name: Checkout
@@ -44,15 +41,8 @@ jobs:
4441
java-version: ${{ matrix.java }}
4542
check-latest: true
4643
cache: "sbt"
47-
- name: Restore cache
48-
uses: actions/cache@v2
49-
with:
50-
path: |
51-
~/.sbt
52-
~/.ivy2/cache
53-
~/.cache/coursier
54-
key: cache-v1-${{ hashFiles('build.sbt') }}
55-
restore-keys: |
56-
cache-v1-
57-
- name: Compile and Test
58-
run: ./sbt +test
44+
45+
- name: Setup sbt launcher
46+
uses: sbt/setup-sbt@v1
47+
48+
- run: sbt ++${{ matrix.scala }} test

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import java.net.URI
55
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
66

77
val commonSettings = Seq(
8-
ThisBuild / scalaVersion := "2.12.19",
9-
crossScalaVersions := Seq("2.12.19", "2.13.14", "3.3.4"),
8+
ThisBuild / scalaVersion := "2.12.20",
9+
crossScalaVersions := Seq("2.12.20", "2.13.16", "3.3.5"),
1010

1111
ThisBuild / parallelExecution := false,
1212
fork := true,

modules/redpanda/src/main/scala/com/dimafeng/testcontainers/RedpandaContainer.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ case class RedpandaContainer(
1414

1515
object RedpandaContainer {
1616

17-
val defaultImage = "docker.redpanda.com/vectorized/redpanda"
17+
val defaultImage = "docker.redpanda.com/redpandadata/redpanda"
1818
val defaultTag = "v22.2.6"
1919
val defaultDockerImageName = s"$defaultImage:$defaultTag"
2020

0 commit comments

Comments
 (0)