File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 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
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+ 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
You can’t perform that action at this time.
0 commit comments