Skip to content

Commit

Permalink
chore: change tests report config (#339)
Browse files Browse the repository at this point in the history
Add saving PR number for test reports in ci.yml.
Change URL for test reports
  • Loading branch information
Pavel-Tyan authored Nov 21, 2024
1 parent 05c1187 commit a006953
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,24 @@ jobs:
run: npx playwright install --with-deps
- name: Tests
run: npm run test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
- name: Upload Playwright Report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
path: ./playwright-report
retention-days: 1
- name: Save PR ID
if: always()
run: |
pr="${{ github.event.pull_request.number }}"
echo $pr > ./pr-id.txt
shell: bash
- name: Create PR Artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: pr
path: ./pr-id.txt
- name: Typecheck
run: npm run typecheck
2 changes: 1 addition & 1 deletion .github/workflows/pr-visual-tests-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
number: ${{ steps.pr.outputs.id }}
header: visual tests report
message: '[Visual Tests Report](https://storage.yandexcloud.net/diplodoc-playwright-reports/components/test-report/${{ steps.pr.outputs.id }}/index.html) is ready.'
message: '[Visual Tests Report](https://storage.yandexcloud.net/diplodoc-playwright-reports/components/${{ steps.pr.outputs.id }}/index.html) is ready.'

0 comments on commit a006953

Please sign in to comment.