Skip to content

Commit

Permalink
try to fix mac tests with build before testcontainer start and macos-…
Browse files Browse the repository at this point in the history
…14 (#569)

* try to fix mac tests with build before testcontainer start and macos-14

* try macos-13

* add colima

* try macos-12
  • Loading branch information
jamesward committed Mar 11, 2024
1 parent 0141680 commit 909d3dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -23,7 +23,7 @@ jobs:
- uses: gradle/gradle-build-action@v3

- name: Test on Mac
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-12'
run: |
brew install docker
colima start --network-address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ class ExamplesTest {

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

GradleRunner.create()
.withProjectDir(tempDir.toFile())
.withArguments(":client:build")
.withGradleDistribution(distributionUrl)
.build()

GradleRunner.create()
.withProjectDir(tempDir.toFile())
.withArguments(":server:jibDockerBuild", "--image=grpc-kotlin-examples-server")
Expand Down

0 comments on commit 909d3dd

Please sign in to comment.