-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into release-app-Microsoft…
….App-2024-10-02-preview
- Loading branch information
Showing
20,020 changed files
with
2,827,459 additions
and
82,176 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
Validating CODEOWNERS rules …
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
groups: | ||
typespec: | ||
patterns: | ||
- "*typespec*" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Protected Files | ||
|
||
on: pull_request | ||
|
||
env: | ||
# Users allowed to edit protected files without failing check | ||
user-allowed: ${{ github.event.pull_request.user.login == 'azure-sdk' || github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
|
||
jobs: | ||
protected-files: | ||
name: Protected Files | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Since check is required, the job must pass instead of being skipped | ||
- name: User allowed | ||
if: ${{ env.user-allowed == 'true' }} | ||
run: echo "Account '${{ github.event.pull_request.user.login }}' is allowed to update protected files" | ||
|
||
- uses: actions/checkout@v4 | ||
if: ${{ env.user-allowed != 'true' }} | ||
with: | ||
# Required since "HEAD^" is passed to Get-ChangedFiles | ||
fetch-depth: 2 | ||
|
||
- name: Detect changes to protected files | ||
if: ${{ env.user-allowed != 'true' }} | ||
run: | | ||
. eng/scripts/ChangedFiles-Functions.ps1 | ||
$protectedFiles = @("package.json", "package-lock.json") | ||
$changedFiles = @(Get-ChangedFiles -baseCommitish HEAD^ -targetCommitish HEAD -diffFilter "") | ||
$matchedFiles = @($protectedFiles | Where-Object { $changedFiles -contains $_}) | ||
if ($matchedFiles.Count -gt 0) { | ||
foreach ($file in $matchedFiles) { | ||
Write-Output "::error file=$file::File '$file' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections." | ||
} | ||
exit 1 | ||
} | ||
else { | ||
Write-Output "No changes to protected files: [$($protectedFiles -join ', ')]" | ||
} | ||
shell: pwsh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Specs Model - Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- typespec-next | ||
pull_request: | ||
paths: | ||
- package-lock.json | ||
- package.json | ||
- tsconfig.json | ||
- .github/workflows/_reusable-eng-tools-test.yaml | ||
- .github/workflows/specs-model-test.yaml | ||
- eng/tools/package.json | ||
- eng/tools/tsconfig.json | ||
- eng/tools/specs-model/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
specsModel: | ||
name: Specs Model | ||
uses: ./.github/workflows/_reusable-eng-tools-test.yaml | ||
with: | ||
package: specs-model | ||
lint: true | ||
prettier: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: tsp-client - Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- package-lock.json | ||
- package.json | ||
- tsconfig.json | ||
- .github/workflows/_reusable-eng-tools-test.yaml | ||
- .github/workflows/tsp-client-test.yaml | ||
- eng/tools/package.json | ||
- eng/tools/tsconfig.json | ||
- eng/tools/tsp-client-tests/** | ||
- specification/common-types | ||
- specification/keyvault | ||
- specification/sphere | ||
|
||
jobs: | ||
tsp-client: | ||
uses: ./.github/workflows/_reusable-eng-tools-test.yaml | ||
with: | ||
package: tsp-client-tests | ||
sparse-checkout-paths: | | ||
specification/common-types | ||
specification/keyvault | ||
specification/sphere |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: TypeSpec Requirement - Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
paths: | ||
- package-lock.json | ||
- package.json | ||
- tsconfig.json | ||
- .github/workflows/_reusable-eng-tools-test.yaml | ||
- .github/workflows/typespec-requirement-test.yaml | ||
- eng/scripts/** | ||
- eng/tools/package.json | ||
- eng/tools/tsconfig.json | ||
- eng/tools/typespec-requirement/** | ||
|
||
jobs: | ||
typespec-requirement: | ||
uses: ./.github/workflows/_reusable-eng-tools-test.yaml | ||
with: | ||
package: typespec-requirement |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: TypeSpec Requirement | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
TypeSpec-Requirement: | ||
name: TypeSpec Requirement | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
spec-type: [data-plane, resource-manager] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Required since "HEAD^" is passed to TypeSpec-Requirement.ps1 | ||
fetch-depth: 2 | ||
|
||
- name: Use Node 20.0 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.0 | ||
|
||
- run: npm ci | ||
|
||
- run: npm ls -a | ||
continue-on-error: true | ||
|
||
- run: | | ||
eng/scripts/TypeSpec-Requirement.ps1 ` | ||
-BaseCommitish HEAD^ ` | ||
-TargetCommitish HEAD ` | ||
-SpecType ${{ matrix.spec-type }} | ||
shell: pwsh |
Oops, something went wrong.