-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR checks perf improvements and organization (#568)
Result when from 30-35min pipelines to under 20min - Use corepack to install pnpm: Faster and respect the pnpm version set in package.json instead of having another place to keep up to date - dependency cache - move swagger check to seperate job - upgrade to new code coverage task - Don't run core tests in ci - Move all consitency check to independent github action workflow(Makes it easier to see which one failed immediately without having to open devops and dig into the steps)
- Loading branch information
1 parent
88b633a
commit 0551990
Showing
28 changed files
with
244 additions
and
142 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: fix | ||
packages: | ||
- "@azure-tools/typespec-autorest-canonical" | ||
- "@azure-tools/typespec-autorest" | ||
--- | ||
|
||
Small performance improvements |
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,9 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: internal | ||
packages: | ||
- "@azure-tools/typespec-azure-core" | ||
- "@azure-tools/typespec-azure-portal-core" | ||
- "@azure-tools/typespec-azure-resource-manager" | ||
- "@azure-tools/typespec-client-generator-core" | ||
--- |
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,19 @@ | ||
name: Install dependencies | ||
description: Setup for node. pnpm and dependencies | ||
inputs: | ||
node-version: | ||
required: false | ||
description: Node version for setup-node | ||
default: 20.x | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Set node version to ${{ inputs.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} |
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,29 @@ | ||
parameters: | ||
|
||
steps: | ||
- checkout: self | ||
submodules: true | ||
|
||
- template: /eng/pipelines/templates/install.yml | ||
|
||
- script: pnpm run check-version-mismatch | ||
displayName: Check version mismatch | ||
|
||
- script: pnpm run check-format | ||
displayName: Check Formatting | ||
condition: ne(variables['Agent.OS'], 'Windows_NT') | ||
|
||
- script: pnpm run lint | ||
displayName: Lint | ||
condition: ne(variables['Agent.OS'], 'Windows_NT') | ||
|
||
- script: node eng/scripts/download-common-types.js v3 | ||
displayName: Swagger - Fetch common-types v3 | ||
condition: ne(variables['Agent.OS'], 'Windows_NT') | ||
|
||
- script: node eng/scripts/check-for-changed-files.js | ||
displayName: Check Git Status For Changed Files | ||
|
||
- script: pnpm run cspell | ||
displayName: Spell check | ||
condition: ne(variables['Agent.OS'], 'Windows_NT') |
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 |
---|---|---|
|
@@ -3,7 +3,9 @@ parameters: | |
- name: nodeVersion | ||
type: string | ||
default: 20.x | ||
|
||
- name: pnpmStorePath | ||
type: string | ||
default: $(Pipeline.Workspace)/.pnpm-store | ||
steps: | ||
- task: UseDotNet@2 | ||
inputs: | ||
|
@@ -15,8 +17,17 @@ steps: | |
displayName: Install Node.js | ||
retryCountOnTaskFailure: 3 | ||
|
||
- script: npm install -g [email protected] | ||
- task: Cache@2 | ||
inputs: | ||
key: 'pnpm | "$(Agent.OS)" | pnpm-lock.yaml' | ||
path: ${{ parameters.pnpmStorePath }} | ||
displayName: Cache pnpm store | ||
- script: | | ||
corepack enable | ||
corepack prepare pnpm@latest-8 --activate | ||
displayName: Install pnpm | ||
- script: pnpm config set store-dir ${{ parameters.pnpmStorePath }} | ||
displayName: Setup pnpm cache dir | ||
|
||
- script: | | ||
echo "Node:" | ||
|
Oops, something went wrong.