diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5dcccee8..5b408763 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -67,6 +67,13 @@ jobs: bzlmodEnabled: [true, false] exclude: + # macos is expensive so don't test these + - os: macos-latest + folder: e2e/custom_registry + - os: macos-latest + folder: e2e/wasm + - os: macos-latest + folder: e2e/crane_as_registry # Don't test bzlmod with Bazel 5 (not supported) - bazelversion: 5.3.2 bzlmodEnabled: true @@ -103,12 +110,24 @@ jobs: working-directory: ${{ matrix.folder }} run: echo "${{ matrix.bazelversion }}" > .bazelversion + - name: Configure TestContainers cloud + if: ${{ matrix.os == 'macos-latest' }} + uses: atomicjar/testcontainers-cloud-setup-action@main + with: + wait: true + token: ${{ secrets.TC_CLOUD_TOKEN }} + + - name: Setup Remote Docker + if: ${{ matrix.os == 'macos-latest' }} + run: echo "DOCKER_HOST=$(cat ~/.testcontainers.properties | grep 'docker.host' | cut -d '=' -f2 | xargs)" >> $GITHUB_ENV + - name: bazel test //... working-directory: ${{ matrix.folder }} env: # Bazelisk will download bazel to here, ensure it is cached between runs. XDG_CACHE_HOME: ~/.cache/bazel-repo run: bazel --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc --bazelrc=.bazelrc test ${{ steps.set_bzlmod_flag.outputs.bzlmod_flag }} //... + test-auth: runs-on: ubuntu-latest steps: