adds pr title check #2
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
version: 2.1 | |
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" | |
- 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. | |
- 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. | |
- android/run-tests: | |
test-command: ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=com.deque.mobile.axedevtoolssampleapp.apiexamples.SaveLocallyXml connectedAndroidTest | |
- 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 |