Skip to content

Commit 0dd75f1

Browse files
committed
fix: add GitHub Actions to build, upload and test
1 parent 278bc64 commit 0dd75f1

File tree

2 files changed

+49
-20
lines changed

2 files changed

+49
-20
lines changed

.github/workflows/CI.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
Test:
10+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- macos-latest
18+
# - windows-latest
19+
node_version:
20+
- 12
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
submodules: recursive
25+
26+
- name: Install Node
27+
uses: actions/setup-node@v2
28+
with:
29+
node-version: ${{ matrix.node_version }}
30+
31+
- name: Install dependencies and build
32+
run: npm install
33+
34+
- name: Tests
35+
run: npm run test
36+
37+
- name: Upload artifacts
38+
uses: actions/upload-artifact@v2
39+
with:
40+
path: |
41+
./build
42+
./deps
43+
44+
Skip:
45+
if: contains(github.event.head_commit.message, '[skip ci]')
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Skip CI 🚫
49+
run: echo skip ci

.travis.yml

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

0 commit comments

Comments
 (0)