From d7cad6333950db7947bc5b99038c232f1e8faebb Mon Sep 17 00:00:00 2001 From: Sil Date: Sat, 17 Oct 2026 18:06:53 +0200 Subject: [PATCH] Allow repositories to retain signed-out browser failure output --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d690e12..99c415d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,10 @@ on: node-version-file: type: string default: .node-version + browser-artifacts: + description: Newline-separated signed-out browser output paths, uploaded when browser tests fail. + type: string + default: "" secrets: testing-secret: required: false @@ -146,12 +150,21 @@ jobs: if: ${{ inputs.browser }} run: vp exec playwright install --with-deps chromium firefox webkit - name: Browser tests + id: browser if: ${{ inputs.browser }} env: BASE_URL: ${{ steps.preview.outputs.base-url }} QA_DEPLOY_URLS: ${{ steps.preview.outputs.deploy-urls }} TESTING_SECRET: ${{ secrets.testing-secret }} run: vp run test:browser + - name: Upload browser failure output + if: ${{ failure() && steps.browser.outcome == 'failure' && inputs.browser-artifacts != '' }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: browser-failures-${{ github.run_id }}-${{ github.run_attempt }} + path: ${{ inputs.browser-artifacts }} + retention-days: 3 + if-no-files-found: warn test: name: Test