|
19 | 19 | default: '1.0.0-beta.9d31fc6' |
20 | 20 |
|
21 | 21 | env: |
| 22 | + AGORA_NPM_EMAIL: ${{ secrets.AGORA_NPM_EMAIL }} |
| 23 | + AGORA_NPM_AUTH: ${{ secrets.AGORA_NPM_AUTH }} |
| 24 | + AGORA_REGISTRY_URL: //agora.dequecloud.com/artifactory/api/npm/axe-devtools-mobile-appium-qa/ |
22 | 25 | APPIUM_SKIP_CHROMEDRIVER_INSTALL: 1 |
23 | 26 | APPIUM_TEST_SERVER_PORT: 4723 |
24 | 27 | APPIUM_TEST_SERVER_HOST: 127.0.0.1 |
|
85 | 88 | echo "Appium version:" |
86 | 89 | appium --version |
87 | 90 |
|
| 91 | + # Configure npm registry for @axe-devtools packages |
| 92 | + git config user.name "deque-mobileteam" |
| 93 | + git config user.email "[email protected]" |
| 94 | + npm config set "@deque:registry" "https:$AGORA_REGISTRY_URL" |
| 95 | + npm config set "@axe-devtools:registry" "https:$AGORA_REGISTRY_URL" |
| 96 | + npm config set "$AGORA_REGISTRY_URL:email" "$AGORA_NPM_EMAIL" |
| 97 | + npm config set "$AGORA_REGISTRY_URL:_authToken" "$AGORA_NPM_AUTH" |
| 98 | +
|
88 | 99 | # Install Axe UiAutomator2 driver for Appium 2 |
89 | | - appium driver install --source=npm appium-uiautomator2-driver |
| 100 | + appium driver install --source=npm @axe-devtools/axe-appium-uiautomator2-driver@${APPIUM2_BETA_VERSION} |
90 | 101 |
|
91 | 102 | # Verify driver installation |
92 | 103 | echo "Installed drivers:" |
@@ -255,8 +266,16 @@ jobs: |
255 | 266 | echo "Appium version:" |
256 | 267 | appium --version |
257 | 268 |
|
| 269 | + # Configure npm registry for @axe-devtools packages |
| 270 | + git config user.name "deque-mobileteam" |
| 271 | + git config user.email "[email protected]" |
| 272 | + npm config set "@deque:registry" "https:$AGORA_REGISTRY_URL" |
| 273 | + npm config set "@axe-devtools:registry" "https:$AGORA_REGISTRY_URL" |
| 274 | + npm config set "$AGORA_REGISTRY_URL:email" "$AGORA_NPM_EMAIL" |
| 275 | + npm config set "$AGORA_REGISTRY_URL:_authToken" "$AGORA_NPM_AUTH" |
| 276 | +
|
258 | 277 | # Install Axe UiAutomator2 driver for Appium 3 |
259 | | - appium driver install --source=npm appium-uiautomator2-driver |
| 278 | + appium driver install --source=npm @axe-devtools/axe-appium3-uiautomator2-driver@${APPIUM3_BETA_VERSION} |
260 | 279 |
|
261 | 280 | # Verify driver installation |
262 | 281 | echo "Installed drivers:" |
|
0 commit comments