Skip to content

Weekly patch release #325

Weekly patch release

Weekly patch release #325

name: Azurebs Integration Tests
on:
workflow_dispatch:
inputs:
pr_ref:
description: 'SHA of the PR head commit (for fork PRs)'
required: false
default: ''
pull_request:
push:
branches:
- main
workflow_call:
concurrency:
group: azurebs-integration
cancel-in-progress: false
jobs:
azurecloud-environment-integration-tests:
name: AzureCloud Environment Integration Tests
runs-on: ubuntu-latest
# Run on push/workflow_dispatch/workflow_call, skip fork PRs
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
github.event_name == 'workflow_call' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
permissions:
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ inputs.pr_ref || github.sha }}
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Setup Azurebs Test Environment
run: |
export azure_storage_account="${{ secrets.AZURE_STORAGE_ACCOUNT }}"
export azure_storage_key="${{ secrets.AZURE_STORAGE_KEY }}"
./.github/scripts/azurebs/setup.sh
- name: Run Tests
run: |
export azure_storage_account="${{ secrets.AZURE_STORAGE_ACCOUNT }}"
export azure_storage_key="${{ secrets.AZURE_STORAGE_KEY }}"
./.github/scripts/azurebs/run-int.sh
- name: Teardown Azurebs Test Environment
if: always()
run: |
export azure_storage_account="${{ secrets.AZURE_STORAGE_ACCOUNT }}"
export azure_storage_key="${{ secrets.AZURE_STORAGE_KEY }}"
./.github/scripts/azurebs/teardown.sh
- name: Report fork PR status
if: always() && inputs.pr_ref != ''
uses: ./.github/actions/report-fork-status
with:
pr_ref: ${{ inputs.pr_ref }}
name: AzureCloud Environment Integration Tests