Skip to content

fix: environment is added #2

fix: environment is added

fix: environment is added #2

name: GCS Integration Tests
on:
push:
pull_request:
jobs:
gcs-integration-fast-tests:
name: GCS Integation Fast Tests
runs-on: ubuntu-latest
environment: gcs-integration
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Setup GCS Test Environment
run: |
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="/tmp/gcp-key.json"
./.github/scripts/gcs/setup.sh
- name: Run Fast Tests
run: |
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="/tmp/gcp-key.json"
export SKIP_LONG_TESTS=yes
./.github/scripts/gcs/run-int.sh
- name: Teardown GCS Test Environment
if: always()
run: |
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="/tmp/gcp-key.json"
./.github/scripts/gcs/teardown.sh
gcs-integration-all-tests:
name: GCS Integation All Tests
runs-on: ubuntu-latest
environment: gcs-integration
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Setup GCS Test Environment
run: |
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="/tmp/gcp-key.json"
./.github/scripts/gcs/setup.sh
- name: Run All Tests
run: |
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="/tmp/gcp-key.json"
./.github/scripts/gcs/run-int.sh
- name: Teardown GCS Test Environment
if: always()
run: |
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="/tmp/gcp-key.json"
./.github/scripts/gcs/teardown.sh