From 39813c21b7eb81a9ce56f50ed539e59c1984419f Mon Sep 17 00:00:00 2001 From: thesayyn Date: Thu, 19 Oct 2023 15:25:41 -0700 Subject: [PATCH] setup --- .github/workflows/ci.yaml | 71 ++++++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5dcccee8..9702454a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,8 +23,8 @@ jobs: - uses: actions/checkout@v3 - id: bazel_6 run: echo "bazelversion=$(head -n 1 .bazelversion)" >> $GITHUB_OUTPUT - - id: bazel_5 - run: echo "bazelversion=5.3.2" >> $GITHUB_OUTPUT + # - id: bazel_5 + # run: echo "bazelversion=5.3.2" >> $GITHUB_OUTPUT outputs: # Will look like ["", "5.3.2"] bazelversions: ${{ toJSON(steps.*.outputs.bazelversion) }} @@ -60,12 +60,12 @@ jobs: bazelversion: ${{ fromJSON(needs.matrix-prep-bazelversion.outputs.bazelversions) }} folder: - . - - e2e/custom_registry - - e2e/wasm - - e2e/smoke - - e2e/crane_as_registry + # - e2e/custom_registry + # - e2e/wasm + # - e2e/smoke + # - e2e/crane_as_registry - bzlmodEnabled: [true, false] + bzlmodEnabled: [false] # [true, false] exclude: # Don't test bzlmod with Bazel 5 (not supported) - bazelversion: 5.3.2 @@ -103,36 +103,45 @@ 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 + + - name: Setup upterm session + uses: lhotari/action-upterm@v1 + with: + limit-access-to-actor: true + - 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: - - uses: actions/checkout@v3 - - name: Setup bats - uses: mig4/setup-bats@v1 - with: - bats-version: "1.8.2" + # test-auth: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Setup bats + # uses: mig4/setup-bats@v1 + # with: + # bats-version: "1.8.2" - - name: Setup bats helpers - uses: brokenpip3/setup-bats-libs@0.0.3 - with: - support-path: /usr/lib/bats/bats-support - support-version: "0.3.0" - assert-path: /usr/lib/bats/bats-assert - assert-version: "2.1.0" + # - name: Setup bats helpers + # uses: brokenpip3/setup-bats-libs@0.0.3 + # with: + # support-path: /usr/lib/bats/bats-support + # support-version: "0.3.0" + # assert-path: /usr/lib/bats/bats-assert + # assert-version: "2.1.0" - - name: bats -r . - working-directory: e2e/auth - run: | - for i in {1..5}; do bats -r . && break || sleep 5; done + # - name: bats -r . + # working-directory: e2e/auth + # run: | + # for i in {1..5}; do bats -r . && break || sleep 5; done - - name: bats -r . --enable_bzlmod - working-directory: e2e/auth - run: | - echo "build --enable_bzlmod" >> .bazelrc.user - for i in {1..5}; do bats -r . && break || sleep 5; done + # - name: bats -r . --enable_bzlmod + # working-directory: e2e/auth + # run: | + # echo "build --enable_bzlmod" >> .bazelrc.user + # for i in {1..5}; do bats -r . && break || sleep 5; done