From 5b5494bac99ec9186c888510f72183e2bb312fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikko=20Va=CC=88lima=CC=88ki?= Date: Fri, 26 Jul 2024 00:37:29 +0300 Subject: [PATCH] Disable UI tests --- .github/workflows/ui_test.yml | 25 +++++++++++++++++++ .../workflows/{xcode.yml => xcode_build.yml} | 20 --------------- 2 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ui_test.yml rename .github/workflows/{xcode.yml => xcode_build.yml} (71%) diff --git a/.github/workflows/ui_test.yml b/.github/workflows/ui_test.yml new file mode 100644 index 0000000..bf7a267 --- /dev/null +++ b/.github/workflows/ui_test.yml @@ -0,0 +1,25 @@ +name: Run UI tests + +on: + +jobs: + ui-test: + name: Run UI tests + runs-on: macos-latest + on: [] + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Bundle Install + run: | + bundle install + - name: Test UI + run: | + bundle exec fastlane test_ui + - name: Archive UI test results on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: artifacts/ diff --git a/.github/workflows/xcode.yml b/.github/workflows/xcode_build.yml similarity index 71% rename from .github/workflows/xcode.yml rename to .github/workflows/xcode_build.yml index 6d66bad..81d80e3 100644 --- a/.github/workflows/xcode.yml +++ b/.github/workflows/xcode_build.yml @@ -28,23 +28,3 @@ jobs: if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]} - - ui-test: - name: Run UI tests - runs-on: macos-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Bundle Install - run: | - bundle install - - name: Test UI - run: | - bundle exec fastlane test_ui - - name: Archive UI test results on failure - if: failure() - uses: actions/upload-artifact@v4 - with: - name: test-results - path: artifacts/