feat: push main and manual trigger are added #7
This file contains hidden or 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: Azurebs Integration Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/azurebs-integration.yml" | |
| - "azurebs/**" | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| azurecloud-environment-integration-tests: | |
| name: AzureCloud Environment Integration Tests | |
| runs-on: ubuntu-latest | |
| 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 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 | |