Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit af1955f

Browse files
committed
chore: add github actions
1 parent daa4f95 commit af1955f

File tree

2 files changed

+73
-44
lines changed

2 files changed

+73
-44
lines changed

.github/workflows/main.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- run: npm install
16+
- run: npx aegir lint
17+
- run: npx aegir dep-check -- -i wrtc -i electron-webrtc
18+
- run: npx aegir build --no-types
19+
- uses: ipfs/aegir/actions/bundle-size@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
test-node:
23+
needs: check
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: [windows-latest, ubuntu-latest, macos-latest]
28+
node: [14, 15]
29+
fail-fast: true
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions/setup-node@v1
33+
with:
34+
node-version: ${{ matrix.node }}
35+
- run: npm install
36+
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
37+
- uses: codecov/codecov-action@v1
38+
test-chrome:
39+
needs: check
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
- run: npm install
44+
- run: npx aegir test -t browser -t webworker --bail
45+
test-firefox:
46+
needs: check
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v2
50+
- run: npm install
51+
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
52+
test-webkit:
53+
needs: check
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: microsoft/playwright-github-action@v1
58+
- run: npm install
59+
- run: npx aegir test -t browser -t webworker --bail -- --browser webkit
60+
test-electron-main:
61+
needs: check
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v2
65+
- run: npm install
66+
- run: npx xvfb-maybe aegir test -t electron-main --bail
67+
test-electron-renderer:
68+
needs: check
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v2
72+
- run: npm install
73+
- run: npx xvfb-maybe aegir test -t electron-renderer --bail

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)