DNS: run GCS provider tests #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() }} |