fix: Properly setup DRM to support Airplay #4224
Workflow file for this run
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: CI | |
| on: [push, pull_request] | |
| # To use Turborepo Remote Caching, set the following environment variables. | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
| jobs: | |
| build: | |
| # Don't run if the CI is triggered by Release Please | |
| if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: read node version from the .nvmrc file | |
| run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
| shell: bash | |
| id: nvmrc | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{steps.nvmrc.outputs.NODE_VERSION}} | |
| # this line is required for the setup-node action to be able to run the npm publish below. | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run clean | |
| - run: npm run build:packages | |
| - run: npx --yes -w packages wet-run@1.2.5 release prerelease --prerelease canary --provenance --log-level verbose | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| lint: | |
| # Don't run if the CI is triggered by Release Please | |
| if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: read node version from the .nvmrc file | |
| run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
| shell: bash | |
| id: nvmrc | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{steps.nvmrc.outputs.NODE_VERSION}} | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| test: | |
| # Don't run if the CI is triggered by Release Please | |
| if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: read node version from the .nvmrc file | |
| run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
| shell: bash | |
| id: nvmrc | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{steps.nvmrc.outputs.NODE_VERSION}} | |
| cache: npm | |
| # esbuild requires --ignore-scripts to NOT be added here. | |
| - run: npm ci | |
| - run: npm run clean | |
| - name: Install playwright browsers | |
| run: npx playwright install --with-deps | |
| # Retry the test command up to 3 times with a timeout of 10 minutes | |
| - uses: nick-fields/retry@v3 | |
| with: | |
| timeout_minutes: 10 | |
| max_attempts: 6 | |
| # run npm test and pass through `-- --all` to turborepo | |
| command: npm run test -- -- --all | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v2.1.0 | |
| with: | |
| verbose: true |