another try #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Accessibility Test & Report | |
on: | |
pull_request: | |
branches: [ "main" ] | |
orbs: | |
android: circleci/[email protected] | |
# https://circleci.com/developer/orbs/orb/circleci/android for latest version | |
jobs: | |
test: | |
executor: | |
name: android/android-machine | |
resource-class: large | |
steps: | |
- checkout | |
- name: Install the Reporter CLI | |
env: | |
apiKey: ${{ secrets.AGORA_API_KEY_KA }} | |
run: | | |
curl --compressed -H "X-JFrog-Art-Api: ${apiKey}" "https://agora.dequecloud.com:443/artifactory/axe-devtools-reporter-cli/prod/4.7.0/reporter-cli-macos" --output "/Users/runner/reporter" | |
chmod +x /Users/runner/reporter | |
# Create an AVD named "myavd" | |
- name: Create AVD | |
android/create-avd: | |
avd-name: myavd | |
system-image: system-images;android-29;default;x86 | |
install: true | |
# By default, after starting up the emulator, a cache will be restored, | |
# "./gradlew assembleDebugAndroidTest" will be run and then a script | |
# will be run to wait for the emulator to start up. | |
# Specify the "post-emulator-launch-assemble-command" command to override | |
# the gradle command run, or set "wait-for-emulator" to false to disable | |
# waiting for the emulator altogether. | |
- name: Start Emulator | |
android/start-emulator: | |
avd-name: myavd | |
no-window: true | |
restore-gradle-cache-prefix: v1a | |
# Runs "./gradlew connectedDebugAndroidTest" by default. | |
# Specify the "test-command" parameter to customize the command run. | |
- name: Run Android Tests | |
android/run-tests: | |
test-command: ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=com.deque.mobile.axedevtoolssampleapp.apiexamples.SaveLocallyXml connectedAndroidTest | |
- name: Save Gradle Caches | |
android/save-gradle-cache: | |
cache-prefix: v1a | |
- name: Build Report | |
if: always() | |
env: | |
scanFolderPath: ${{ '/Users/runner/RegressionScans' }} | |
run: | | |
/Users/runner/reporter ${scanFolderPath} "AxeReport" --format=html | |
- name: Upload a Build Artifact | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: axeDevTools Report | |
path: AxeReport # or path/to/artifact |