Skip to content

Commit a586aea

Browse files
committed
Updated axe drivers
1 parent 5a3de69 commit a586aea

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/android-appium-tests.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
default: '1.0.0-beta.9d31fc6'
2020

2121
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/
2225
APPIUM_SKIP_CHROMEDRIVER_INSTALL: 1
2326
APPIUM_TEST_SERVER_PORT: 4723
2427
APPIUM_TEST_SERVER_HOST: 127.0.0.1
@@ -85,8 +88,16 @@ jobs:
8588
echo "Appium version:"
8689
appium --version
8790
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+
8899
# 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}
90101
91102
# Verify driver installation
92103
echo "Installed drivers:"
@@ -255,8 +266,16 @@ jobs:
255266
echo "Appium version:"
256267
appium --version
257268
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+
258277
# 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}
260279
261280
# Verify driver installation
262281
echo "Installed drivers:"

0 commit comments

Comments
 (0)