Skip to content

SDK Generation for MySQL FlexibleServers TypeSpec Project (API Version 2024-12-30) #34418

SDK Generation for MySQL FlexibleServers TypeSpec Project (API Version 2024-12-30)

SDK Generation for MySQL FlexibleServers TypeSpec Project (API Version 2024-12-30) #34418

name: TypeSpec Validation
on:
pull_request:
types:
# default
- opened
- synchronize
- reopened
# re-run if base branch is changed, since previous merge commit may generate incorrect diff
- edited
permissions:
contents: read
jobs:
typespec-validation:
name: TypeSpec Validation
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node and install deps
uses: ./.github/actions/setup-node-install-deps
- name: Validate Impacted Specs
run: |
# Keep processing when errors are written. Nonzero exit will mark the
# step as failed.
$ErrorActionPreference = 'Continue'
# Only "main" and "RPSaaSMaster" should validate all specs if core files change
$ignoreCoreFiles = -not (@('main', 'RPSaaSMaster') -contains $Env:GITHUB_BASE_REF)
./eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose -IgnoreCoreFiles:$ignoreCoreFiles
shell: pwsh