Skip to content

Commit 173b3b3

Browse files
authoredJul 6, 2021
chore: add github actions and remove travis (#151)
1 parent e19da79 commit 173b3b3

File tree

2 files changed

+50
-46
lines changed

2 files changed

+50
-46
lines changed
 

‎.github/workflows/main.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
name: ci
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- run: npm install
17+
- run: npx aegir lint
18+
- run: npx aegir dep-check
19+
- run: npm run build
20+
test-node:
21+
needs: check
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
matrix:
25+
os: [windows-latest, ubuntu-latest, macos-latest]
26+
node: [14, 16]
27+
fail-fast: true
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node }}
33+
- run: npm install @mapbox/node-pre-gyp -g
34+
- run: npm install
35+
- run: npx aegir test -t node --cov --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 -- --browser firefox

‎.travis.yml

-46
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.