Skip to content

Commit 60f7890

Browse files
committed
comment on PR
1 parent addf024 commit 60f7890

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/playwright.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: lts/*
16+
- name: Set the version suffix for the output
17+
run: echo VERSION_SUFFIX=${GITHUB_REF_NAME//\//-} >> $GITHUB_ENV
1618
- name: Build Stackable Free Plugin
1719
run: |
1820
npm ci --legacy-peer-deps
@@ -32,9 +34,15 @@ jobs:
3234
WP_PASSWORD: password
3335
STACKABLE_SLUG: Stackable/plugin
3436
run: npm run test
35-
- uses: actions/upload-artifact@v4
36-
if: ${{ !cancelled() }}
37+
- name: Zip Playwright Report
38+
uses: montudor/action-zip@v1
3739
with:
38-
name: playwright-report
39-
path: playwright-report/
40-
retention-days: 30
40+
args: zip -qq -r playwright-report-${{ env.VERSION_SUFFIX }}.zip playwright-report
41+
- name: Upload Playwright report artifact
42+
if: ${{ github.event_name == 'pull_request' }}
43+
uses: gavv/[email protected]
44+
with:
45+
commit: ${{ github.event.pull_request.head.sha }}
46+
repo-token: ${{ secrets.GITHUB_TOKEN }}
47+
artifacts: playwright-report-${{ env.VERSION_SUFFIX }}.zip
48+
artifacts-branch: artifacts

0 commit comments

Comments
 (0)