-
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 branch 'main' into keyvault_required
- Loading branch information
Showing
12,007 changed files
with
1,746,894 additions
and
41,744 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Setup Node and run `npm ci` | ||
description: Uses specified Node version and runs npm commands to set up the environment for REST API CI | ||
|
||
inputs: | ||
node-version: | ||
description: 'Node version to use' | ||
default: 20.x | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
|
||
- run: | | ||
echo "::group::npm ci" | ||
npm ci | ||
echo "::endgroup::" | ||
shell: bash | ||
- run: | | ||
echo "::group::npm ls -a" | ||
npm ls -a || true | ||
echo "::endgroup::" | ||
shell: bash |
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 |
---|---|---|
@@ -1,13 +1,28 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-name: "@azure-tools/*" | ||
- dependency-name: "@typespec/*" | ||
groups: | ||
typespec: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "npm" | ||
directories: | ||
- "/" | ||
- "/eng/tools/**" | ||
schedule: | ||
interval: "daily" | ||
ignore: | ||
# Updated manually to align with minimum supported Node version | ||
- dependency-name: "@types/node" | ||
# Updated manually to align with repo microsoft/typespec | ||
- dependency-name: "typescript" | ||
- dependency-name: "prettier" | ||
# Updated manually by the Liftr team | ||
- dependency-name: "@azure-tools/typespec-liftr-base" | ||
# minimatch@9 is the last version to support Node 18 | ||
- dependency-name: "minimatch" | ||
versions: [ ">= 10.0.0"] | ||
groups: | ||
typespec: | ||
patterns: | ||
- "*typespec*" | ||
eslint: | ||
patterns: | ||
- "*eslint*" | ||
# Leave the constraint if the original constraint allows the new version, otherwise, bump the constraint. | ||
versioning-strategy: increase-if-necessary |
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
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,83 @@ | ||
name: TypeSpec Validation - All | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- RPSaaSMaster | ||
- typespec-next | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- RPSaaSMaster | ||
- typespec-next | ||
paths: | ||
- .gitattributes | ||
- .prettierrc.json | ||
- package-lock.json | ||
- package.json | ||
- tsconfig.json | ||
- eng/** | ||
- specification/suppressions.yaml | ||
- specification/common-types/** | ||
|
||
# Workflow and workflow dependencies | ||
- .github/workflows/typespec-validation-all.yaml | ||
- .github/actions/setup-node-npm-ci/** | ||
|
||
schedule: | ||
# Run 4x/day | ||
- cron: '0 0,6,12,18 * * *' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
typespec-validation-all: | ||
# Use short name to maximize space for parameters in UI | ||
name: TSV | ||
|
||
strategy: | ||
# Validate all specs, even if one job fails early | ||
fail-fast: false | ||
# Sort matrix elements from "most important" to "least important" for the best grouping and UI | ||
# Keep matrix values short, to maximize number of parameters shown in UI | ||
matrix: | ||
# When triggered by schedule, validate both the default branch and typespec-next | ||
# Use the placeholder string "default" instead of passing "" directly, since the latter gets ignored by | ||
# the GitHub Jobs UI. | ||
ref: ${{ fromJSON(github.event_name == 'schedule' && '["default", "next"]' || '["default"]') }} | ||
os: [ubuntu, windows] | ||
# shards must start at 0 and increment by 1 | ||
shard: [0, 1, 2] | ||
# total-shards must be an accurate count of the number of shards | ||
total-shards: [3] | ||
|
||
runs-on: ${{ matrix.os }}-latest | ||
|
||
steps: | ||
- name: Enable git long paths | ||
if: runner.os == 'Windows' | ||
run: git config --global core.longpaths true | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
# Convert placeholder string 'default' to '', which tells the action to checkout the default ref. | ||
ref: ${{ matrix.ref == 'next' && 'typespec-next' || '' }} | ||
|
||
- name: Setup Node and run `npm ci` | ||
uses: ./.github/actions/setup-node-npm-ci | ||
|
||
- name: Validate All Specs | ||
run: | | ||
# Keep processing when errors are written. Nonzero exit will mark the | ||
# step as failed. | ||
$ErrorActionPreference = 'Continue' | ||
./eng/scripts/TypeSpec-Validation.ps1 ` | ||
-Shard ${{ matrix.shard }} ` | ||
-TotalShards ${{ matrix.total-shards }} ` | ||
-CheckAll ` | ||
-GitClean ` | ||
-Verbose | ||
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
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,25 @@ | ||
name: TypeSpec Validation | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
typespec-validation: | ||
name: TypeSpec Validation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup Node and run `npm ci` | ||
uses: ./.github/actions/setup-node-npm-ci | ||
|
||
- name: Validate Impacted Specs | ||
run: | | ||
# Keep processing when errors are written. Nonzero exit will mark the | ||
# step as failed. | ||
$ErrorActionPreference = 'Continue' | ||
./eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose | ||
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
Oops, something went wrong.