Skip to content

feat: use choice type for sku/log_level inputs, add Azure region vali… #1

feat: use choice type for sku/log_level inputs, add Azure region vali…

feat: use choice type for sku/log_level inputs, add Azure region vali… #1

Workflow file for this run

# Copyright (c) Microsoft Corporation.

Check failure on line 1 in .github/workflows/release-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-tests.yml

Invalid workflow file

(Line: 42, Col: 9): 'default' is already defined
# Licensed under the MIT license.
# ===========================================================================
# Release Tests — Run all test suites in order before a release.
# ===========================================================================
# Executes unit tests, build-package integration tests, and the full
# extract→publish round-trip integration test sequentially. Fails fast:
# subsequent stages are skipped if any prior stage fails.
# ===========================================================================
name: "Release Tests"
on:
schedule:
- cron: '0 9 1 * *' # 1st of every month at 9:00 UTC
workflow_dispatch:
inputs:
sku:
description: 'APIM SKU for all-types integration test'
required: true
type: choice
options:
- Standard
- StandardV2
- Premium
- PremiumV2
default: StandardV2
location:
description: 'Azure region for all-types integration test'
required: false
type: string
default: 'centralus'
log_level:
description: 'Log level'
required: false
type: choice
options:
- Info
- Verbose
- Debug
default: Verbose
default: Verbose
permissions:
contents: read
jobs:
ci:
name: CI (Unit + Build Package Tests)
uses: ./.github/workflows/ci.yml
all-types-integration:
name: All-Types Integration Test
needs: ci
uses: ./.github/workflows/integration-test.yml
with:
sku: ${{ inputs.sku || 'StandardV2' }}
location: ${{ inputs.location || 'centralus' }}
log_level: ${{ inputs.log_level || 'Verbose' }}
redact-secrets-integration:
name: Redact Secrets Integration Test
needs: all-types-integration
uses: ./.github/workflows/integration-redact-secrets.yml
with:
sku: ${{ inputs.sku || 'StandardV2' }}
location: ${{ inputs.location || 'centralus' }}
log_level: ${{ inputs.log_level || 'Verbose' }}