-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (62 loc) · 2.16 KB
/
continuous.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
# 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/env-capabilities test coverage to codecov
- name: Upload env-capabilities Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: env-capabilities
files: ./packages/env-capabilities/coverage/coverage-final.json
name: env-capabilities-coverage
fail_ci_if_error: true
# upload @videojs/playback test coverage to codecov
- name: Upload Playback 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