Skip to content

Commit

Permalink
chore: enable some CI on macos again
Browse files Browse the repository at this point in the history
We need at least some coverage, even if we don't have a container runtime there
  • Loading branch information
alexeagle committed Oct 8, 2023
1 parent 4e125bf commit f0fb627
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,34 @@ jobs:
# Will look like ["<version from .bazelversion>", "5.3.2"]
bazelversions: ${{ toJSON(steps.*.outputs.bazelversion) }}

matrix-prep-os:
# Prepares the 'os' axis of the test matrix
runs-on: ubuntu-latest
env:
TC_CLOUD_TOKEN: ${{ secrets.TC_CLOUD_TOKEN }}
steps:
- id: linux
run: echo "os=ubuntu-latest" >> $GITHUB_OUTPUT
- id: rbe
run: echo "os=macos-latest" >> $GITHUB_OUTPUT
# Don't run MocOS if there is no TestContainers API token which is the case on forks
# We expect to use it at some point for tests that need a docker daemon.
if: ${{ env.TC_CLOUD_TOKEN != '' }}
outputs:
# Will look like ["ubuntu-latest", "macos-latest"]
os: ${{ toJSON(steps.*.outputs.os) }}

test:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
needs:
- matrix-prep-bazelversion
- matrix-prep-os

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: ${{ fromJSON(needs.matrix-prep-os.outputs.os) }}
bazelversion: ${{ fromJSON(needs.matrix-prep-bazelversion.outputs.bazelversions) }}
folder:
- .
Expand Down

0 comments on commit f0fb627

Please sign in to comment.