Prepare for worker split #158
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: continuous | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Quality Gates | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# install node version from .nvmrc | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
# install deps | |
- name: Install Dependencies | |
run: npm ci | |
# lint all packages | |
- name: Lint All Packages | |
run: npm run lint | |
# build all packages | |
- name: Build All Packages | |
run: npm run build | |
# verify generated bundle sizes for all packages | |
- name: Verify Bundle Sizes | |
run: npm run verify:bundle-size | |
# run unit tests and generate test coverage for all packages | |
- name: Test All Packages | |
run: npm run test:coverage | |
# upload @videojs/hls-parser test coverage to codecov | |
- name: Upload Hls-Parser Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: hls-parser | |
files: ./packages/hls-parser/coverage/coverage-final.json | |
name: hls-parser-coverage | |
fail_ci_if_error: true | |
# upload @videojs/dash-parser test coverage to codecov | |
- name: Upload Dash-Parser Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: dash-parser | |
files: ./packages/dash-parser/coverage/coverage-final.json | |
name: dash-parser-coverage | |
fail_ci_if_error: true | |
# upload @videojs/playback test coverage to codecov | |
- name: Upload Player Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: playback | |
files: ./packages/playback/coverage/coverage-final.json | |
name: playback-coverage | |
fail_ci_if_error: true |