From 6bc2bb351ff8f0d806cbcfa5e46ea3e74432e5f8 Mon Sep 17 00:00:00 2001 From: Julio <1953782+julio-lopez@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:33:12 -0700 Subject: [PATCH] DNS: run GCS provider tests --- .github/workflows/provider-gcs.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/provider-gcs.yml diff --git a/.github/workflows/provider-gcs.yml b/.github/workflows/provider-gcs.yml new file mode 100644 index 00000000000..7695699006b --- /dev/null +++ b/.github/workflows/provider-gcs.yml @@ -0,0 +1,38 @@ +name: Providers - GCS +on: + push: + branches: [ test/provider-gcs, refactor/gcs-client ] + workflow_dispatch: + inputs: + ref: + description: 'branch or git ref to use for the build' + required: true + default: 'test/providers' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + provider-test: + name: GCS Provider Test + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + fetch-depth: 0 + ref: ${{ github.event.inputs.ref_name || github.ref }} + - name: Set up Go + uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + with: + go-version-file: 'go.mod' + check-latest: true + id: go + - name: Install Dependencies + run: make provider-tests-deps + - name: GCS + run: make provider-tests PROVIDER_TEST_TARGET=gcs + env: + KOPIA_GCS_CREDENTIALS_JSON_GZIP: ${{ secrets.KOPIA_GCS_CREDENTIALS_JSON_GZIP }} + KOPIA_GCS_TEST_BUCKET: ${{ secrets.KOPIA_GCS_TEST_BUCKET }} + if: ${{ success() || failure() }}