Skip to content

Commit 96e7ca7

Browse files
committed
chore: CI.
1 parent 5237364 commit 96e7ca7

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Run Tests (Node Minimum Version)
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 20
14+
registry-url: https://registry.npmjs.org/
15+
- name: Install dependencies
16+
run: npm ci
17+
- name: Run linter
18+
run: npm run lint
19+
- name: Run tests
20+
run: npm run test:ci

.github/workflows/run-test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Run Tests
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 'lts/*'
14+
registry-url: https://registry.npmjs.org/
15+
- name: Install dependencies
16+
run: npm ci
17+
- name: Run linter
18+
run: npm run lint
19+
- name: Run tests
20+
run: npm run test:ci
21+
test-browser:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 'lts/*'
28+
registry-url: https://registry.npmjs.org/
29+
- name: Install dependencies
30+
run: npm ci
31+
- name: Run linter
32+
run: npm run lint
33+
- name: Run a webrtc relay in the background
34+
run: npm run webrtc:background
35+
- name: Run browser tests
36+
run: npm run test:browser

0 commit comments

Comments
 (0)