Skip to content

Commit

Permalink
chore: add yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 27, 2023
1 parent 3080d8a commit aed3839
Show file tree
Hide file tree
Showing 3 changed files with 16,230 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules
npm-debug.log
# package-lock.json
yarn.lock
# yarn.lock
yarn-error.log
/coverage
/coverage-report
Expand Down
28 changes: 18 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,23 @@ pool:
stages:
- stage: env
jobs:
- job: Nodes
- job: Init
steps:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '18.10.0'
displayName: 'Install Node.js'
- task: Cache@2
displayName: Cache Yarn packages
inputs:
key: '"yarn" | "$(Agent.OS)" | yarn.lock'
restoreKeys: |
"yarn" | "$(Agent.OS)"
"yarn"
path: $(YARN_CACHE_FOLDER)

- stage: build
dependsOn: env
jobs:
- job: build
steps:
Expand All @@ -28,7 +37,7 @@ stages:
node --version
yarn --version
yarn config list
yarn install
yarn --frozen-lockfile
displayName: 'Install'
- task: Bash@3
env:
Expand Down Expand Up @@ -72,21 +81,21 @@ stages:
displayName: 'Checkout'
clean: true
fetchDepth: 1
- script: yarn install
- script: yarn --frozen-lockfile
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 install
- script: yarn --frozen-lockfile
displayName: 'Install'
- script: |
yarn run test
Expand Down Expand Up @@ -114,16 +123,15 @@ stages:
testResultsFiles: '**/TESTS*.xml'
- job: cli
steps:
- script: yarn install
- script: yarn --frozen-lockfile
displayName: 'Install'
- script: yarn run test:cli
dependsOn: env

- stage: lint
dependsOn: env
jobs:
- job: packages
steps:
- script: yarn install
- script: yarn --frozen-lockfile
displayName: 'Install'
- script: yarn run lint
dependsOn: env
Loading

0 comments on commit aed3839

Please sign in to comment.