diff --git a/.github/workflows/focus-ios-ui-tests.yml b/.github/workflows/focus-ios-ui-tests.yml index edcefe2a034b..463a29e7fdb2 100644 --- a/.github/workflows/focus-ios-ui-tests.yml +++ b/.github/workflows/focus-ios-ui-tests.yml @@ -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/checkout@v4.1.7 - 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: | @@ -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 @@ -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/slack-github-action@v1.26.0 - 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/slack-github-action@v1.26.0 + # 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' }} \ No newline at end of file