@@ -12,9 +12,11 @@ variables:
1212 - group : iTwin.js non-secret config variables
1313 - group : iTwin.js Integration Test Users
1414 - group : iTwin.js Auth Client Integration tests
15+ - name : packages
16+ value : browser-authorization, electron-authorization, oidc-signin-tool
1517
1618jobs :
17- - job : BuildPackages
19+ - job : IntegrationTests
1820 strategy :
1921 matrix :
2022 linux :
3234 - task : NodeTool@0
3335 displayName : Use Node 18
3436 inputs :
35- versionSpec : 18.x
37+ versionSpec : 18.16. x
3638
37- - script : corepack enable
39+ - script : npm install -g corepack && corepack enable
3840 displayName : Install pnpm
3941
4042 - bash : |
5355 test_azuread_user_password: $(IMJS_TEST_AZUREAD_USER_PASSWORD)
5456 condition: and(succeeded(), ne(variables['Agent.OS'], 'Windows_NT'))
5557
56- # For debugging
58+ # For debugging
5759 - bash : |
5860 export
5961
@@ -106,13 +108,14 @@ jobs:
106108 IMJS_TEST_REGULAR_USER_PASSWORD: $(IMJS_TEST_REGULAR_USER_PASSWORD)
107109 condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
108110
109- - script : pnpm test:integration
110- displayName : pnpm test:integration
111- env :
112- # Couldn't get this variable to be ingested in the steps above, but this works
113- IMJS_TEST_AZUREAD_USER_PASSWORD : $(IMJS_TEST_AZUREAD_USER_PASSWORD)
114- IMJS_TEST_REGULAR_USER_PASSWORD : $(IMJS_TEST_REGULAR_USER_PASSWORD)
115- condition : and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
111+ - ${{ each package in split(variables.packages, ', ')}} :
112+ - script : pnpm --filter ${{package}} test:integration
113+ displayName : run ${{package}} tests
114+ env :
115+ # Couldn't get this variable to be ingested in the steps above, but this works
116+ IMJS_TEST_AZUREAD_USER_PASSWORD : $(IMJS_TEST_AZUREAD_USER_PASSWORD)
117+ IMJS_TEST_REGULAR_USER_PASSWORD : $(IMJS_TEST_REGULAR_USER_PASSWORD)
118+ condition : and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
116119
117120 - task : PublishTestResults@2
118121 displayName : " Publish Integration Test Results"
0 commit comments