From 9eae7ce5a8baa0257e8b41051cf76e1e6ec985d9 Mon Sep 17 00:00:00 2001 From: Matt Weber <1062734+mweberxyz@users.noreply.github.com> Date: Sat, 30 Mar 2024 12:37:41 -0400 Subject: [PATCH] chore(workflows/nightly.yml): create issue only on all fail (#3020) --- .github/workflows/nightly.yml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 56b194771b1..28f66097a3e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -9,25 +9,36 @@ permissions: contents: read jobs: - test: + test-linux: if: github.repository == 'nodejs/undici' - strategy: - fail-fast: false - max-parallel: 0 - matrix: - runs-on: - - ubuntu-latest - - windows-latest - - macos-latest uses: ./.github/workflows/test.yml with: node-version: 22-nightly - runs-on: ${{ matrix.runs-on }} + runs-on: ubuntu-latest + secrets: inherit + + test-windows: + if: github.repository == 'nodejs/undici' + uses: ./.github/workflows/test.yml + with: + node-version: 22-nightly + runs-on: windows-latest + secrets: inherit + + test-macos: + if: github.repository == 'nodejs/undici' + uses: ./.github/workflows/test.yml + with: + node-version: 22-nightly + runs-on: macos-latest secrets: inherit report-failure: - if: failure() - needs: test + if: ${{ always() && (needs.test-linux.result == 'failure' && needs.test-windows.result == 'failure' && needs.test-macos.result == 'failure') }} + needs: + - test-linux + - test-windows + - test-macos runs-on: ubuntu-latest permissions: issues: write