diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2024-08-09 14:48:01 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-08-12 12:09:11 +0200 |
| commit | 5eaa862fbfa7c8c327d071fae41f8c14b7749df0 (patch) | |
| tree | f4559abd2baac7d8d0116c2a7350608634ae96da /.github | |
| parent | 364772fc6713ed9c2d2b21ba563177cdc7916ee6 (diff) | |
| download | mullvadvpn-5eaa862fbfa7c8c327d071fae41f8c14b7749df0.tar.xz mullvadvpn-5eaa862fbfa7c8c327d071fae41f8c14b7749df0.zip | |
Use the same style for running and building tests
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/run-ios-e2e-tests/action.yml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/.github/actions/run-ios-e2e-tests/action.yml b/.github/actions/run-ios-e2e-tests/action.yml index 4c6634085a..4d789a6c47 100644 --- a/.github/actions/run-ios-e2e-tests/action.yml +++ b/.github/actions/run-ios-e2e-tests/action.yml @@ -44,17 +44,20 @@ runs: TEST_DEVICE_UDID: ${{ inputs.test_device_udid }} - name: Run end-to-end-tests - run: > - if [ -n "$TEST_NAME" ]; then TEST_NAME_ARGUMENT=" -only-testing $TEST_NAME"; else TEST_NAME_ARGUMENT=""; fi - - set -o pipefail && env NSUnbufferedIO=YES xcodebuild - -project MullvadVPN.xcodeproj - -scheme MullvadVPNUITests - -testPlan MullvadVPNUITestsAll $TEST_NAME_ARGUMENT - -resultBundlePath ${{ env.TEST_OUTPUT_DIRECTORY }}/xcode-test-report - -derivedDataPath derived-data - -destination "platform=iOS,id=$TEST_DEVICE_UDID" - test-without-building 2>&1 | xcbeautify --report junit + run: | + if [ -n "$TEST_NAME" ]; then + TEST_NAME_ARGUMENT=" -only-testing $TEST_NAME" + else + TEST_NAME_ARGUMENT="" + fi + set -o pipefail && env NSUnbufferedIO=YES xcodebuild \ + -project MullvadVPN.xcodeproj \ + -scheme MullvadVPNUITests \ + -testPlan MullvadVPNUITestsAll $TEST_NAME_ARGUMENT \ + -resultBundlePath ${{ env.TEST_OUTPUT_DIRECTORY }}/xcode-test-report \ + -derivedDataPath derived-data \ + -destination "platform=iOS,id=$TEST_DEVICE_UDID" \ + test-without-building 2>&1 | xcbeautify --report junit \ --report-path ${{ env.TEST_OUTPUT_DIRECTORY }}/junit-test-report shell: bash working-directory: ${{ inputs.outputs_path }}/mullvadvpn-app/ios |
