Skip to content

Commit 909d3dd

Browse files
authored
try to fix mac tests with build before testcontainer start and macos-14 (#569)
* try to fix mac tests with build before testcontainer start and macos-14 * try macos-13 * add colima * try macos-12
1 parent 0141680 commit 909d3dd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
gradle:
1010
strategy:
1111
matrix:
12-
os: [ubuntu-latest, macos-latest]
12+
os: [ubuntu-latest, macos-12]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v4
@@ -23,7 +23,7 @@ jobs:
2323
- uses: gradle/gradle-build-action@v3
2424

2525
- name: Test on Mac
26-
if: matrix.os == 'macos-latest'
26+
if: matrix.os == 'macos-12'
2727
run: |
2828
brew install docker
2929
colima start --network-address

integration_testing/src/test/kotlin/io/grpc/kotlin/ExamplesTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ class ExamplesTest {
7171

7272
assertTrue(dependencyResult.output.contains("io.grpc:grpc-kotlin-stub:$grpcKotlinVersion"))
7373

74+
GradleRunner.create()
75+
.withProjectDir(tempDir.toFile())
76+
.withArguments(":client:build")
77+
.withGradleDistribution(distributionUrl)
78+
.build()
79+
7480
GradleRunner.create()
7581
.withProjectDir(tempDir.toFile())
7682
.withArguments(":server:jibDockerBuild", "--image=grpc-kotlin-examples-server")

0 commit comments

Comments
 (0)