Skip to content

fix: make env refresh tolerant of unsupported service hosts #11344

fix: make env refresh tolerant of unsupported service hosts

fix: make env refresh tolerant of unsupported service hosts #11344

Workflow file for this run

name: cli-ci
on:
pull_request:
paths:
- "cli/**"
- "!cli/azd/extensions/**"
- ".github/workflows/cli-ci.yml"
- "eng/scripts/Get-CoverageDiff*.ps1"
branches: [main]
# If two events are triggered within a short time in the same PR, cancel the run of the oldest event
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
azd-lint:
uses: ./.github/workflows/lint-go.yml
with:
working-directory: cli/azd
cspell-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
- run: npm install -g cspell@8.13.1
- name: Spell check for go and docs
working-directory: cli/azd
run: cspell lint '**/*.go' '**/*.md' --exclude 'extensions/**' --config ./.vscode/cspell.yaml --no-progress
Copyright-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Copyright check
run: ./eng/scripts/copyright-check.sh ./cli/azd
bicep-lint:
uses: ./.github/workflows/lint-bicep.yml
coverage-script-tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Run Pester tests for coverage scripts
shell: pwsh
run: |
# Pin Pester to a specific signed release for deterministic, supply-chain-safe installs.
Install-Module -Name Pester -RequiredVersion 5.7.1 -Force -Scope CurrentUser
Import-Module Pester -RequiredVersion 5.7.1
$config = New-PesterConfiguration
$config.Run.Path = './eng/scripts/Get-CoverageDiff.Tests.ps1'
$config.Run.Exit = $true
$config.Output.Verbosity = 'Detailed'
Invoke-Pester -Configuration $config
magefile-tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: cli/azd/go.mod
- name: Run mage helper tests (resolveCoverageFile, resolveBaselineFile, resolveChangedFilesForDiff)
working-directory: cli/azd
run: go test -tags mage -run '^TestResolve' -v .