Skip to content

Commit eeeb283

Browse files
committed
fix: stash playwright artifacts before git pull in qa workflow
1 parent 8ef9f51 commit eeeb283

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/qa-run.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,28 @@ jobs:
6363
npx playwright test "test/$SUITE.spec.js"
6464
fi
6565
66+
- name: Upload Playwright report
67+
uses: actions/upload-artifact@v4
68+
if: always()
69+
with:
70+
name: playwright-report
71+
path: tools/qa/playwright-report/
72+
retention-days: 30
73+
6674
- name: Write summary
6775
working-directory: tools/qa
6876
env:
6977
PATH_PREFIX: ${{ inputs.path_prefix }}
7078
DIFF_THRESHOLD: ${{ inputs.threshold }}
7179
SUITE: ${{ inputs.suite }}
80+
GITHUB_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
7281
run: node summarize.js
7382

7483
- name: Commit results
7584
run: |
7685
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
7786
git config user.name "github-actions[bot]"
87+
git stash || true
7888
git pull --rebase origin ${{ github.ref_name }}
7989
git add tools/qa/results/latest.json
8090
git diff --staged --quiet || git commit -m "chore: update qa results [skip ci]"

0 commit comments

Comments
 (0)