Skip to content

Commit

Permalink
ci: update azure
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Feb 15, 2024
1 parent 5dd5317 commit 535cc98
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: "^16.0.0"
versionSpec: "^18.0.0"
displayName: "Install Node.js"
- script: |
curl -o- -L https://yarnpkg.com/install.sh | bash
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: "^16.0.0"
versionSpec: "^18.0.0"
displayName: "Install Node.js"
- script: |
curl -o- -L https://yarnpkg.com/install.sh | bash
Expand Down Expand Up @@ -113,16 +113,16 @@ jobs:
node_version: ^10.13.0
part: b
node-12-a:
node_version: ^12.4.0
node_version: ^18.0.0
part: a
node-12-b:
node_version: ^12.4.0
node_version: ^18.0.0
part: b
node-16-a:
node_version: ^16.0.0
node_version: ^20.0.0
part: a
node-16-b:
node_version: ^16.0.0
node_version: ^20.0.0
part: b
steps:
- task: NodeTool@0
Expand All @@ -146,10 +146,10 @@ jobs:
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 --ignore-engines
yarn --frozen-lockfile --ignore-engines
displayName: "Install dependencies (old node.js version)"
condition: or(eq(variables['node_version'], '^10.13.0'), eq(variables['node_version'], '^12.4.0'))
condition: eq(variables['node_version'], '^10.13.0')
- script: yarn --frozen-lockfile
displayName: "Install dependencies"
condition: and(not(eq(variables['node_version'], '^10.13.0')), not(eq(variables['node_version'], '^12.4.0')))
condition: not(eq(variables['node_version'], '^10.13.0'))
- script: yarn link --frozen-lockfile || true
displayName: "Link webpack"
continueOnError: true
Expand Down Expand Up @@ -184,16 +184,16 @@ jobs:
node_version: ^10.13.0
part: b
node-12-a:
node_version: ^12.4.0
part: a
node-14-a:
node_version: ^14.0.0
node_version: ^18.0.0
part: a
node-12-b:
node_version: ^18.0.0
part: b
node-16-a:
node_version: ^16.0.0
node_version: ^20.0.0
part: a
node-16-b:
node_version: ^16.0.0
node_version: ^20.0.0
part: b
steps:
- task: NodeTool@0
Expand Down Expand Up @@ -223,15 +223,15 @@ jobs:
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies (old node.js version)"
condition: or(eq(variables['node_version'], '^10.13.0'), eq(variables['node_version'], '^12.4.0'), eq(variables['node_version'], '^14.0.0'))
condition: eq(variables['node_version'], '^10.13.0')
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn --frozen-lockfile
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
condition: and(not(eq(variables['node_version'], '^10.13.0')), not(eq(variables['node_version'], '^12.4.0')), not(eq(variables['node_version'], '^14.0.0')))
condition: not(eq(variables['node_version'], '^10.13.0'))
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Expand All @@ -254,19 +254,25 @@ jobs:
pool:
vmImage: macOS-latest
strategy:
maxParallel: 4
maxParallel: 6
matrix:
node-10-a:
node_version: ^10.13.0
part: a
node-10-b:
node_version: ^10.13.0
part: b
node-12-a:
node_version: ^12.4.0
node_version: ^18.0.0
part: a
node-12-b:
node_version: ^12.4.0
node_version: ^18.0.0
part: b
node-16-a:
node_version: ^16.0.0
node_version: ^20.0.0
part: a
node-16-b:
node_version: ^16.0.0
node_version: ^20.0.0
part: b
steps:
- task: NodeTool@0
Expand Down Expand Up @@ -295,15 +301,15 @@ jobs:
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies (old node.js version)"
condition: or(eq(variables['node_version'], '^10.13.0'), eq(variables['node_version'], '^12.4.0'))
condition: eq(variables['node_version'], '^10.13.0')
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn --frozen-lockfile
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
condition: and(not(eq(variables['node_version'], '^10.13.0')), not(eq(variables['node_version'], '^12.4.0')))
condition: not(eq(variables['node_version'], '^10.13.0'))
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Expand Down

0 comments on commit 535cc98

Please sign in to comment.