feat: add example for running on Perfecto Platform #81
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" ] | |
jobs: | |
build: | |
name: Build and Test default scheme | |
runs-on: macos-latest # Make sure xcodebuild simulator/OS is supported: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md | |
steps: | |
- name: Setup Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.4' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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 | |
- name: Add Deque API Key | |
env: | |
dequeApiKey: ${{ secrets.DEQUE_API_KEY_KA }} | |
run: | | |
cd "$(pwd)/axe-devtools-ios-sample-app" | |
echo "import Foundation | |
struct Login { | |
static let APIKey = \"${dequeApiKey}\" | |
}" > "Login.swift" | |
- name: Test | |
run: | | |
xcodebuild test -configuration Debug -scheme "axe-devtools-ios-sample-app" -target "RegressionUITests" -destination "platform=iOS Simulator,OS=17.5,name=iPhone 15" -quiet | |
- 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/upload-artifact@v3.1.2 | |
with: | |
name: axeDevTools Report | |
path: AxeReport # or path/to/artifact | |