Skip to content

Commit

Permalink
Fix tests in case of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Oct 21, 2024
1 parent bf8502b commit 53299f6
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ jobs:
workingDir: $(Build.SourcesDirectory)/survey-library
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
cd $(Build.SourcesDirectory)/survey-library
npm run release -- --release-as $(SurveyJSVersion)
Expand Down Expand Up @@ -398,6 +402,10 @@ jobs:
workingDir: $(Build.SourcesDirectory)/survey-library
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
cd $(Build.SourcesDirectory)/survey-library
npm run release -- --release-as $(SurveyJSVersion)
Expand Down Expand Up @@ -500,6 +508,10 @@ jobs:
workingDir: $(Build.SourcesDirectory)/survey-library
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
cd $(Build.SourcesDirectory)/survey-library
npm run release -- --release-as $(SurveyJSVersion)
Expand Down Expand Up @@ -603,6 +615,10 @@ jobs:
workingDir: $(Build.SourcesDirectory)/survey-library
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
cd $(Build.SourcesDirectory)/survey-library
npm run build_core
Expand Down Expand Up @@ -720,6 +736,10 @@ jobs:
verbose: false
workingDir: $(Build.SourcesDirectory)/survey-library
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
cd $(Build.SourcesDirectory)/survey-library
Expand Down Expand Up @@ -934,6 +954,10 @@ jobs:
workingDir: $(Build.SourcesDirectory)/survey-library
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
cd $(Build.SourcesDirectory)/survey-library
npm run release -- --release-as $(SurveyJSVersion)
Expand Down
20 changes: 20 additions & 0 deletions devops-accessibility-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_knockout_prod
displayName: 'build prod'
Expand Down Expand Up @@ -115,6 +119,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_react_prod
npm run build_core
Expand Down Expand Up @@ -179,6 +187,10 @@ jobs:
command: install
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_vue_prod
Expand Down Expand Up @@ -244,6 +256,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_core
npm run build_i18n_dev
Expand Down Expand Up @@ -330,6 +346,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_core
npm run build_i18n_dev
Expand Down
24 changes: 24 additions & 0 deletions devops-pull-requests-parallel-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_core
npm run build_knockout_prod
Expand Down Expand Up @@ -108,6 +112,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_react_prod
npm run build_core
Expand Down Expand Up @@ -157,6 +165,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_vue_prod
displayName: "Build Vue"
Expand Down Expand Up @@ -202,6 +214,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_core
npm run build_i18n
Expand Down Expand Up @@ -270,6 +286,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_core
npm run build_i18n
Expand Down Expand Up @@ -385,6 +405,10 @@ jobs:
workingDir: $(Build.SourcesDirectory)
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_core
npm run build_i18n
Expand Down
25 changes: 25 additions & 0 deletions devops-visual-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
command: install
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_knockout_prod
Expand Down Expand Up @@ -114,6 +118,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_react_prod
npm run build_core
Expand Down Expand Up @@ -179,6 +187,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_vue_prod
displayName: 'build prod'
Expand Down Expand Up @@ -242,6 +254,10 @@ jobs:
command: install
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_core
Expand Down Expand Up @@ -329,6 +345,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_core
npm run build_i18n_dev
Expand Down Expand Up @@ -479,6 +499,11 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')


- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_core
npm run build_i18n
Expand Down
25 changes: 25 additions & 0 deletions visual-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:
command: install
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_knockout_prod
Expand Down Expand Up @@ -115,6 +119,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_react_prod
npm run build_core
Expand Down Expand Up @@ -180,6 +188,11 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_vue_prod
displayName: 'build prod'
Expand Down Expand Up @@ -244,6 +257,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_core
npm run build_i18n_dev
Expand Down Expand Up @@ -330,6 +347,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- powershell: |
npm run build_core
npm run build_i18n_dev
Expand Down Expand Up @@ -480,6 +501,10 @@ jobs:
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- script: |
npx puppeteer browsers install chrome
displayName: "install chrome"
- script: |
npm run build_core
npm run build_i18n
Expand Down

0 comments on commit 53299f6

Please sign in to comment.