Skip to content

Commit

Permalink
Add link to playwright report in PR (#430)
Browse files Browse the repository at this point in the history
* Add link to playwright report

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
trungleduc and pre-commit-ci[bot] authored Sep 18, 2024
1 parent fbec2e7 commit b5afc35
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ jobs:
npx playwright test
- name: Upload Playwright Test report
id: upload-galata-artifact
if: always()
uses: actions/upload-artifact@v3
with:
Expand All @@ -185,6 +186,12 @@ jobs:
ui-tests/test-results
ui-tests/playwright-report
- name: Save artifact data
uses: trungleduc/appsharingspace-pr-comment/.github/actions/save-artifact-link@v2
with:
output_name: galata-apss
artifact_link: 'https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}/artifacts/${{ steps.upload-galata-artifact.outputs.artifact_id }}'

check_links:
name: Check Links
runs-on: ubuntu-latest
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/comment-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
pull-requests: write

jobs:
comment:
comment-preview:
runs-on: ubuntu-latest
if: >
${{ github.event.workflow_run.event == 'pull_request' &&
Expand All @@ -21,3 +21,15 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
index_path: lab/index.html
comment-galata:
runs-on: ubuntu-latest
if: >
${{ github.event.workflow_run.event == 'pull_request'}}
steps:
- name: 'Comment galata link on workflow'
uses: trungleduc/appsharingspace-pr-comment/.github/actions/pr-comment@v2
with:
comment_prefix: '**Integration tests repot:**'
artifact_name: galata-apss
github_token: ${{ secrets.github_token }}
index_path: playwright-report/index.html

0 comments on commit b5afc35

Please sign in to comment.