Add swift command for running accessibility tests
This commit is contained in:
committed by
Stefan Ceriu
parent
2d60a2b755
commit
17189bf968
16
.github/workflows/accessibility_tests.yml
vendored
16
.github/workflows/accessibility_tests.yml
vendored
@@ -20,29 +20,17 @@ jobs:
|
||||
steps:
|
||||
- uses: nschloe/action-cached-lfs-checkout@f46300cd8952454b9f0a21a3d133d4bd5684cfc2 #v1.2.3
|
||||
|
||||
- uses: actions/cache@v5
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gems-
|
||||
|
||||
- name: Setup environment
|
||||
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||
|
||||
- name: Run tests
|
||||
run: bundle exec fastlane accessibility_tests
|
||||
|
||||
- name: Zip results # for faster upload
|
||||
if: failure()
|
||||
working-directory: fastlane/test_output
|
||||
run: zip -r AccessibilityTests.xcresult.zip AccessibilityTests.xcresult
|
||||
run: swift run tools ci accessibility-tests
|
||||
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v7
|
||||
if: failure()
|
||||
with:
|
||||
name: Results
|
||||
path: fastlane/test_output/AccessibilityTests.xcresult.zip
|
||||
path: test_output/AccessibilityTests.xcresult.zip
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
|
||||
Reference in New Issue
Block a user