diff --git a/.github/workflows/end-to-end.yml b/.github/workflows/end-to-end.yml index cd3cbe1299..20ed48ea18 100644 --- a/.github/workflows/end-to-end.yml +++ b/.github/workflows/end-to-end.yml @@ -95,17 +95,17 @@ jobs: run: | export PATH="$PATH":"$HOME/.maestro/bin"; maestro cloud --apiKey ${{ secrets.MAESTRO_CLOUD_API_KEY }} -e ONBOARDING_COMPLETED=true --fail-on-timeout=true --fail-on-cancellation=true --timeout=150 --ios-version=17 --include-tags=${{ matrix.test-tag }} DerivedData/Build/Products/Debug-iphonesimulator/DuckDuckGo.app .maestro/ - notify-failure: - name: Notify on failure - if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} - needs: [build-end-to-end-tests, end-to-end-tests] - runs-on: ubuntu-latest + # notify-failure: + # name: Notify on failure + # if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} + # needs: [build-end-to-end-tests, end-to-end-tests] + # runs-on: ubuntu-latest - steps: - - name: Create Asana task when workflow failed - run: | - curl -s "https://app.asana.com/api/1.0/tasks" \ - --header "Accept: application/json" \ - --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ - --header "Content-Type: application/json" \ - --data ' { "data": { "name": "GH Workflow Failure - End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}. For instructions on how to handle the failure(s), check https://app.asana.com/0/0/1206423571874502/f" } }' + # steps: + # - name: Create Asana task when workflow failed + # run: | + # curl -s "https://app.asana.com/api/1.0/tasks" \ + # --header "Accept: application/json" \ + # --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ + # --header "Content-Type: application/json" \ + # --data ' { "data": { "name": "GH Workflow Failure - End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}. For instructions on how to handle the failure(s), check https://app.asana.com/0/0/1206423571874502/f" } }' diff --git a/.github/workflows/sync-end-to-end.yml b/.github/workflows/sync-end-to-end.yml index c70dc3ef37..e96a5769ef 100644 --- a/.github/workflows/sync-end-to-end.yml +++ b/.github/workflows/sync-end-to-end.yml @@ -108,20 +108,20 @@ jobs: run: | git checkout .maestro/config.yaml - notify-failure: - name: Notify on failure - if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} - needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests] - runs-on: ubuntu-latest + # notify-failure: + # name: Notify on failure + # if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} + # needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests] + # runs-on: ubuntu-latest - steps: - - name: Create Asana task when workflow failed - run: | - curl -s "https://app.asana.com/api/1.0/tasks" \ - --header "Accept: application/json" \ - --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ - --header "Content-Type: application/json" \ - --data ' { "data": { "name": "GH Workflow Failure - Sync End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}" } }' + # steps: + # - name: Create Asana task when workflow failed + # run: | + # curl -s "https://app.asana.com/api/1.0/tasks" \ + # --header "Accept: application/json" \ + # --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ + # --header "Content-Type: application/json" \ + # --data ' { "data": { "name": "GH Workflow Failure - Sync End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}" } }'