Skip to content

Commit

Permalink
Publish playwright report to reports repo (#690)
Browse files Browse the repository at this point in the history
* update e2e github flow

* update

* update

* update

* update

* update

* update

* update

* update

* update ssh

* update

* update

* update

* added e2e to separate workflow

* update

* update

* update

* update

* removed if always() from push reports step
  • Loading branch information
refael-m authored Aug 14, 2024
1 parent 3030408 commit a6666e7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/e2e_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Video Player PR

on:
workflow_dispatch:
pull_request:

env:
CI: true
Expand All @@ -16,8 +17,11 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Node setup
uses: ./.github/actions/node-setup
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: NPM Install
run: npm install
Expand All @@ -33,12 +37,17 @@ jobs:
path: playwright-report/
retention-days: 30

# - name: Deploy report to Github Pages
# if: always()
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: playwright-report



- name: Pushes to reports repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.BOT_TOKEN }}
with:
source-directory: 'playwright-report'
destination-github-username: 'cloudinary'
destination-repository-name: 'cloudinary-video-player-reports'
user-email: ''
target-branch: main
target-directory: 'playwright-report_${{ github.run_id }}'

- name: Write URL in summary
run: echo "### Test results https://cloudinary.github.io/cloudinary-video-player-reports/playwright-report_${{ github.run_id }}" >> $GITHUB_STEP_SUMMARY
5 changes: 1 addition & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ jobs:
run: npm run build-all

- name: Unit tests
run: npm run test:unit

- name: E2E tests
run: npm run test:e2e
run: npm run test:unit

0 comments on commit a6666e7

Please sign in to comment.