Skip to content

Commit 33b8173

Browse files
authored
fix: upload s3 playwright tests (#259)
1 parent ad76cf0 commit 33b8173

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/setup-node@v4
1515
with:
1616
node-version: 18
17+
cache: npm
1718
- name: Install dependencies
1819
run: npm ci
1920
- name: Run Playwright tests
@@ -35,7 +36,7 @@ jobs:
3536
shell: bash
3637
- name: Create PR Artifact
3738
if: always()
38-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
3940
with:
4041
name: pr
4142
path: ./pr-id.txt

.github/workflows/pr-playwright-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
- name: Download Artifacts
1616
uses: actions/download-artifact@v4
1717
with:
18-
workflow: ${{ github.event.workflow_run.workflow_id }}
18+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1919
run_id: ${{ github.event.workflow_run.id }}
2020
- name: Extract PR Number
2121
id: pr
2222
run: echo "::set-output name=id::$(<pr/pr-id.txt)"
2323
shell: bash
24-
- name: Upload
24+
- name: Upload to S3
2525
env:
2626
AWS_ACCESS_KEY_ID: ${{ secrets.STORYBOOK_S3_KEY_ID }}
2727
AWS_SECRET_ACCESS_KEY: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

0 commit comments

Comments
 (0)