Skip to content

Commit

Permalink
Merge branch 'main' into witemple-msft/pr-validate-http-enum-visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
witemple-msft authored Jan 17, 2025
2 parents ff9c5ab + 349649a commit fb4289f
Show file tree
Hide file tree
Showing 853 changed files with 56,129 additions and 12,158 deletions.
6 changes: 6 additions & 0 deletions .github/cspell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '0.2'
import:
- ../cspell.yaml
words:
- azsdk
- pwsh
5 changes: 3 additions & 2 deletions .github/workflows/protected-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
run: |
. eng/scripts/ChangedFiles-Functions.ps1
$protectedFiles = @("package.json", "package-lock.json")
$protectedFiles = @("package.json", "package-lock.json", ".github/*", "eng/*")
$changedFiles = @(Get-ChangedFiles -baseCommitish HEAD^ -targetCommitish HEAD -diffFilter "")
$matchedFiles = @($protectedFiles | Where-Object { $changedFiles -contains $_})
$matchedFiles = @($changedFiles | Where-Object { $changedFile = $_; $protectedFiles | Where-Object { $changedFile -like $_ } })
if ($matchedFiles.Count -gt 0) {
foreach ($file in $matchedFiles) {
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/spelling-all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: SpellCheck - All

on:
push:
branches:
- main
- RPSaaSMaster

schedule:
# Run every day at 12:06 UTC
- cron: "6 12 * * *"
workflow_dispatch:

jobs:
spellcheck:
name: SpellCheck
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run spelling check
run: |
./eng/common/spelling/Invoke-Cspell.ps1 `
-ScanGlobs '**' `
-CSpellConfigPath './cspell.json' `
-SpellCheckRoot (Resolve-Path specification)
shell: pwsh
3 changes: 2 additions & 1 deletion .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
- name: Run spelling check
run: |
./eng/common/scripts/check-spelling-in-changed-files.ps1 `
-CSpellConfigPath 'cSpell.json' `
-CSpellConfigPath 'cspell.json' `
-SourceCommittish HEAD `
-TargetCommittish HEAD^ `
-SpellCheckRoot (Resolve-Path specification) `
-ExitWithError
if ($LASTEXITCODE) {
Write-Host "Spelling errors found in changed files. See https://aka.ms/ci-fix#spell-check"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/tsp-client-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ on:
- eng/tools/tsconfig.json
- eng/tools/tsp-client-tests/**
- specification/common-types
- specification/keyvault
- specification/sphere
- specification/contosowidgetmanager
workflow_dispatch:

jobs:
Expand All @@ -28,5 +27,4 @@ jobs:
package: tsp-client-tests
sparse-checkout-paths: |
specification/common-types
specification/keyvault
specification/sphere
specification/contosowidgetmanager
Loading

0 comments on commit fb4289f

Please sign in to comment.