Video Player PR #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Video Player PR | ||
on: | ||
workflow_dispatch: | ||
env: | ||
CI: true | ||
jobs: | ||
e2e: | ||
name: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Node setup | ||
uses: ./.github/actions/node-setup | ||
- name: NPM Install | ||
run: npm install | ||
- name: E2E tests | ||
run: npm run test:e2e | ||
with: | ||
PLAYWRIGHT_HTML_OUTPUT_DIR='./docs/report/${{ github.event.number }}/${{ github.run_number }}' | ||
- name: Upload report to artifact | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 5 | ||
- name: Post the link to the report | ||
if: always() | ||
uses: Sibz/[email protected] | ||
with: | ||
authToken: ${{ secrets.GITHUB_TOKEN }} | ||
state: 'success' | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
target_url: https://deploy-preview-${{ github.event.number }}--cld-video-player.netlify.app/docs/report/${{ github.event.number }}/${{ github.run_number }} |