-
-
Notifications
You must be signed in to change notification settings - Fork 30
53 lines (43 loc) · 1.41 KB
/
mediasoup-client-aiortc.yaml
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
name: mediasoup-client-aiortc
on: [push, pull_request]
concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
strategy:
matrix:
# Different Node versions on Ubuntu, the latest Node on other platforms.
ci:
- os: ubuntu-22.04
node: 16
- os: macos-12
node: 18
- os: ubuntu-22.04
node: 20
runs-on: ${{ matrix.ci.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.ci.node }}
- name: Configure cache
uses: actions/cache@v3
with:
path: |
~/.npm
key: ${{ matrix.ci.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ matrix.ci.os }}-node-
- name: npm ci
run: npm ci --force --foreground-scripts
# NOTE: Avoid lint:python due to
# https://github.com/versatica/mediasoup-client-aiortc/issues/25
- name: npm run lint:node
run: npm run lint:node
- name: npm run test
run: DEBUG="mediasoup-client-aiortc:WARN* mediasoup-client-aiortc:ERROR*" PYTHON_LOG_TO_STDOUT=true npm run test