Skip to content

Commit

Permalink
Just run smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
clarmso committed Dec 19, 2024
1 parent 545236f commit 7ff698d
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/focus-ios-ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ jobs:
fail-fast: false
max-parallel: 1
matrix:
xcodebuild_test_plan: ['SmokeTest', 'FullFunctionalTests']
ios_simulator: [ 'iPhone 16', 'iPad (10th generation)']
xcodebuild_test_plan: ['SmokeTest']
ios_simulator: ['iPhone 16']
steps:
- name: Check out source code
uses: actions/[email protected]
- name: Install packages
id: packages
run: |
gem install xcpretty -v 0.4.0
gem install erb -v 2.2.0
gem install xcpretty -v 0.2.8
pip install blockkit==1.9.1
xcpretty -version
- name: Setup Xcode
id: xcode
run: |
Expand All @@ -91,7 +91,7 @@ jobs:
-destination 'platform=iOS Simulator,name=${{ matrix.ios_simulator }},OS=${{ env.ios_version }}' \
-testPlan ${{ matrix.xcodebuild_test_plan }} \
-resultBundlePath ${{ env.test_results_directory }}/results
touch xcodebuild.log
| tee xcodebuild.log | xcpretty -r junit && exit ${PIPESTATUS[0]}
working-directory: ${{ env.browser }}
continue-on-error: true
# - name: Print test report
Expand All @@ -115,22 +115,22 @@ jobs:
# name: ${{ env.browser }}-${{ matrix.xcodebuild_test_plan }}-${{ matrix.ios_simulator }}-junit-${{ github.run_number }}
# path: ${{ env.browser }}/build/reports/junit.xml
# retention-days: 90
- name: Report to Slack
id: slack
uses: slackapi/[email protected]
with:
payload-file-path: ${{ env.browser }}/slack.json
env:
SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SLACK_TOKEN }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
ios_simulator: ${{ matrix.ios_simulator }}
pass_fail: ${{ steps.run-tests.outcome == 'success' && ':white_check_mark:' || ':x:' }}
xcodebuild_test_plan: ${{ matrix.xcodebuild_test_plan }}
ref_name: ${{ github.ref_name }}
repository: ${{ github.repository }}
run_id: ${{ github.run_id }}
server_url: ${{ github.server_url }}
sha: ${{ github.sha }}
# - name: Report to Slack
# id: slack
# uses: slackapi/[email protected]
# with:
# payload-file-path: ${{ env.browser }}/slack.json
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SLACK_TOKEN }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
# ios_simulator: ${{ matrix.ios_simulator }}
# pass_fail: ${{ steps.run-tests.outcome == 'success' && ':white_check_mark:' || ':x:' }}
# xcodebuild_test_plan: ${{ matrix.xcodebuild_test_plan }}
# ref_name: ${{ github.ref_name }}
# repository: ${{ github.repository }}
# run_id: ${{ github.run_id }}
# server_url: ${{ github.server_url }}
# sha: ${{ github.sha }}
- name: Return fail status if a test fails
run: |
exit ${{ steps.run-tests.outcome == 'success' && '0' || '1' }}

0 comments on commit 7ff698d

Please sign in to comment.