Skip to content

Commit 65b8a9e

Browse files
committed
Add GitHub Action CI task
1 parent ca3a9d1 commit 65b8a9e

File tree

2 files changed

+38
-35
lines changed

2 files changed

+38
-35
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
include:
16+
- node-version: 16
17+
full-ci: true
18+
- node-version: 14
19+
full-ci: false
20+
- node-version: 12
21+
full-ci: false
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: npm ci
29+
- if: ${{ matrix.full-ci }}
30+
run: npm test config=@ci
31+
env:
32+
# Please get your own free key if you want to test yourself
33+
BROWSERSTACK_USERNAME: sitepenlabs1
34+
BROWSERSTACK_ACCESS_KEY: xm1uYrJuV3gZMJqCyZJX
35+
- if: ${{ ! matrix.full-ci }}
36+
run: npm test
37+
- if: ${{ matrix.full-ci }}
38+
uses: codecov/codecov-action@v2

.travis.yml

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

0 commit comments

Comments
 (0)