Run all XCUITests in CI and add skip_unit_tests to Depot workflow (#718)
* Run all XCUITests in CI instead of just UpdatePillUITests Removes the -only-testing:cmuxUITests/UpdatePillUITests filter so new test classes are picked up automatically. No more workflow edits needed when adding tests. * Add skip_unit_tests input to test-depot workflow
This commit is contained in:
parent
e01236115e
commit
e295f384fc
2 changed files with 9 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -171,4 +171,4 @@ jobs:
|
|||
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_DIR" \
|
||||
-disableAutomaticPackageResolution \
|
||||
-destination "platform=macOS" \
|
||||
-only-testing:cmuxUITests/UpdatePillUITests test
|
||||
-only-testing:cmuxUITests test
|
||||
|
|
|
|||
10
.github/workflows/test-depot.yml
vendored
10
.github/workflows/test-depot.yml
vendored
|
|
@ -7,8 +7,13 @@ on:
|
|||
description: Branch or SHA to test
|
||||
required: false
|
||||
default: ""
|
||||
skip_unit_tests:
|
||||
description: Skip unit tests (run only UI tests)
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
skip_ui_tests:
|
||||
description: Skip UI tests (headless Depot runners may not support them)
|
||||
description: Skip UI tests (run only unit tests)
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
|
|
@ -95,6 +100,7 @@ jobs:
|
|||
done
|
||||
|
||||
- name: Run unit tests
|
||||
if: ${{ !inputs.skip_unit_tests }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
SOURCE_PACKAGES_DIR="$PWD/.ci-source-packages"
|
||||
|
|
@ -143,4 +149,4 @@ jobs:
|
|||
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_DIR" \
|
||||
-disableAutomaticPackageResolution \
|
||||
-destination "platform=macOS" \
|
||||
-only-testing:cmuxUITests/UpdatePillUITests test
|
||||
-only-testing:cmuxUITests test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue