Video Player PR #25
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: Install Google Chrome | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y wget | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo apt install -y ./google-chrome-stable_current_amd64.deb | |
- name: Install multimedia codecs | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ubuntu-restricted-extras | |
- name: Install additional media codec libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ffmpeg | |
sudo apt-get install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly | |
sudo apt-get install -y libde265-0 | |
- name: Install Playwright chrome | |
run: npx playwright install chrome | |
- name: Check Chrome version | |
run: | | |
google-chrome --version | |
- name: NPM Install | |
run: npm install | |
- name: E2E tests | |
run: npm run test:e2e | |
- name: Upload report to artifact | |
uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
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 | |