Skip to content

feat: add example for running on Perfecto Platform #81

feat: add example for running on Perfecto Platform

feat: add example for running on Perfecto Platform #81

Workflow file for this run

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