Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/_reusable_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
run_critical_flows:
type: boolean
required: true
uitest_shards:
type: number
default: 2
required: false
kalium_ref:
type: string
required: false
Expand Down Expand Up @@ -131,6 +135,7 @@ jobs:
./setup.sh

- name: Setup simulator
if: ${{ !inputs.run_critical_flows || inputs.uitest_shards <= 1 }}
run: |
bundle exec fastlane prepare_for_tests

Expand All @@ -152,7 +157,7 @@ jobs:
- name: "Test new critical flows"
if: ${{ inputs.run_critical_flows }}
run: |
bundle exec fastlane run_uitests
bundle exec fastlane run_uitests uitest_shards:${{ inputs.uitest_shards }}

- name: Stop Kalium Testservice
if: ${{ always() && inputs.run_critical_flows && inputs.branch != 'release/cycle-4.16' && inputs.branch != 'release/cycle-4.17' }}
Expand All @@ -171,8 +176,11 @@ jobs:
echo "::add-mask::$TESTINY_API_KEY"
export TESTINY_API_KEY

# Find a xcresult bundle produced by the run
XCRESULT="$(find artifacts -type d -name '*.xcresult' | head -n 1)"
# Find the xcresult bundle produced by the run
XCRESULT="$(find artifacts -type d -path '*/tests/WireUITests/WireUITests.xcresult' | sort | head -n 1)"
if [ -z "$XCRESULT" ]; then
XCRESULT="$(find artifacts -type d -name '*.xcresult' | sort | head -n 1)"
fi
if [ -z "$XCRESULT" ]; then
echo "[ERROR] No .xcresult found under artifacts/"
exit 1
Expand Down Expand Up @@ -249,6 +257,7 @@ jobs:
name: Test reports for ${{ env.SANITIZED_BRANCH }} (${{ github.run_id }} - ${{ github.run_attempt}})
path: |
build/reports/*.junit
build/WireUITests-shards/**/*.junit
artifacts/**/*.junit
app-group.zip
fastlane/app-group.zip
Expand All @@ -259,6 +268,7 @@ jobs:
with:
files: |
build/reports/*.junit
build/WireUITests-shards/**/*.junit
artifacts/**/*.junit
compare_to_earlier_commit: false
comment_title: "Test Results"
Expand Down Expand Up @@ -450,4 +460,3 @@ jobs:
uses: ./.github/actions/upload-datadog-junit
with:
api_key: ${{ secrets.DD_API_KEY }}

6 changes: 6 additions & 0 deletions .github/workflows/critical_flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
description: "Testiny test run name: paste the exact run name from Testiny"
required: false
type: string
uitest_shards:
description: "Number of parallel WireUITests shards"
required: false
default: 2
type: number
push:
branches:
- 'develop'
Expand All @@ -26,6 +31,7 @@ jobs:
notify_secret: WIRE_IOS_QA_WEBHOOK
test_dependencies: false
run_critical_flows: true
uitest_shards: ${{ fromJSON(inputs.uitest_shards || '2') }}
testiny_run_name: ${{ inputs.testiny_run_name }}
notify: always
secrets: inherit
Loading
Loading