tweak deploy test concurrency & fail condition (#66779)

[x-ref](https://github.com/vercel/next.js/actions/runs/9475354204/job/26106589121)
This commit is contained in:
Zack Tanner 2024-06-11 19:38:32 -07:00 committed by GitHub
parent 0cce20d50a
commit eb6575adb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: true
matrix:
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
group: [1/5, 2/5, 3/5, 4/5, 5/5]
with:
afterBuild: NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e
skipNativeBuild: 'yes'
@ -79,7 +79,7 @@ jobs:
report-failure:
name: report failure to slack
needs: test-deploy
if: ${{ always() && contains(needs.*.result, 'failure') }}
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}
runs-on: ubuntu-latest
steps:
- name: send webhook