From 3080d8a4111bf08c39486b0f6fd481c5587eae41 Mon Sep 17 00:00:00 2001 From: cipchk Date: Fri, 27 Oct 2023 11:32:47 +0800 Subject: [PATCH] chore: update --- azure-pipelines.yml | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7c3ddc0492..db63ca5b9f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,23 +9,14 @@ pool: stages: - stage: env jobs: - - job: Init + - job: Nodes steps: - task: NodeTool@0 - displayName: 'Install Node.js' inputs: versionSpec: '18.10.0' - - task: Cache@2 - displayName: Cache Yarn packages - inputs: - key: '"yarn" | "$(Agent.OS)"' - restoreKeys: | - "yarn" | "$(Agent.OS)" - "yarn" - path: $(YARN_CACHE_FOLDER) + displayName: 'Install Node.js' - stage: build - dependsOn: env jobs: - job: build steps: @@ -37,7 +28,7 @@ stages: node --version yarn --version yarn config list - yarn --frozen-lockfile + yarn install displayName: 'Install' - task: Bash@3 env: @@ -81,7 +72,7 @@ stages: displayName: 'Checkout' clean: true fetchDepth: 1 - - script: yarn --frozen-lockfile + - script: yarn install displayName: 'Install modules' - script: | node ./scripts/azure/github-comment.js "[Preview Failed](https://dev.azure.com/ng-alain/delon/_build/results?buildId=$(Build.BuildId))" @@ -89,13 +80,13 @@ stages: env: ACCESS_REPO: $(ACCESS_REPO) ACCESS_TOKEN: $(ACCESS_TOKEN) + dependsOn: env - stage: test - dependsOn: env jobs: - job: packages steps: - - script: yarn --frozen-lockfile + - script: yarn install displayName: 'Install' - script: | yarn run test @@ -123,15 +114,16 @@ stages: testResultsFiles: '**/TESTS*.xml' - job: cli steps: - - script: yarn --frozen-lockfile + - script: yarn install displayName: 'Install' - script: yarn run test:cli + dependsOn: env - stage: lint - dependsOn: env jobs: - job: packages steps: - - script: yarn --frozen-lockfile + - script: yarn install displayName: 'Install' - script: yarn run lint + dependsOn: env