feat(video): align React component with Marko and shaka-player v5 #102
This file contains hidden or 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: Percy Visual Regression | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| paths: | |
| - 'packages/skin/dist/**' | |
| - 'packages/skin/.storybook/**' | |
| - 'packages/skin/src/sass/**/*.stories.js' | |
| - '.github/workflows/percy.yml' | |
| - 'packages/skin/.percy.yml' | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - 'packages/skin/dist/**' | |
| - 'packages/skin/.storybook/**' | |
| - 'packages/skin/src/sass/**/*.stories.js' | |
| - '.github/workflows/percy.yml' | |
| - 'packages/skin/.percy.yml' | |
| concurrency: | |
| group: "percy-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}" | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| statuses: write | |
| jobs: | |
| percy-pr: | |
| name: Percy Snapshots (PR) | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Need full history for git diff | |
| - name: Fetch base branch | |
| run: | | |
| git fetch origin main:main | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Detect changed components | |
| id: detect | |
| uses: ./.github/actions/detect-changed-components | |
| with: | |
| sass-dir: 'packages/skin/src/sass' | |
| base-branch: 'main' | |
| - name: Run Percy (Partial) | |
| if: steps.detect.outputs.components != '' && steps.detect.outputs.components != 'all' | |
| env: | |
| PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
| PERCY_PARTIAL_BUILD: 1 | |
| STORIES: ${{ steps.detect.outputs.components }} | |
| run: npm run snapshots -w packages/skin | |
| - name: Run Percy (All) | |
| if: steps.detect.outputs.components == 'all' | |
| env: | |
| PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
| run: npm run snapshots:all -w packages/skin | |
| percy-main: | |
| name: Percy Baseline (Main Branch) | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Percy (All - Auto-approve) | |
| env: | |
| PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
| run: npm run snapshots:all -w packages/skin |