Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 27, 2023
1 parent 8c0c68b commit 3080d8a
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -37,7 +28,7 @@ stages:
node --version
yarn --version
yarn config list
yarn --frozen-lockfile
yarn install
displayName: 'Install'
- task: Bash@3
env:
Expand Down Expand Up @@ -81,21 +72,21 @@ 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))"
displayName: 'Comment on github'
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
Expand Down Expand Up @@ -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

0 comments on commit 3080d8a

Please sign in to comment.