Skip to content

Commit 53fcd78

Browse files
committed
chore: add github actions
1 parent 541e3cc commit 53fcd78

File tree

2 files changed

+50
-46
lines changed

2 files changed

+50
-46
lines changed

.github/workflows/main.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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
18+
- run: npx aegir build
19+
test-node:
20+
needs: check
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [windows-latest, ubuntu-latest, macos-latest]
25+
node: [14, 15]
26+
fail-fast: true
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-node@v1
30+
with:
31+
node-version: ${{ matrix.node }}
32+
# modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source
33+
- run: npm install node-pre-gyp -g
34+
- run: npm install
35+
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
36+
- uses: codecov/codecov-action@v1
37+
test-chrome:
38+
needs: check
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- run: npm install
43+
- run: npx aegir test -t browser -t webworker --bail
44+
test-firefox:
45+
needs: check
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
49+
- run: npm install
50+
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless

.travis.yml

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

0 commit comments

Comments
 (0)