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

Commit 1a1abb5

Browse files
committed
Use GH Actions instead of Travis-CI
1 parent 3588645 commit 1a1abb5

File tree

3 files changed

+48
-22
lines changed

3 files changed

+48
-22
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- '!*'
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
node-version: [6.x, 8.x, 10.x, 12.x]
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- uses: actions/checkout@v1
24+
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- name: Print Node.js Version
31+
run: node --version
32+
33+
- name: Install Dependencies
34+
run: npm install
35+
env:
36+
CI: true
37+
38+
- name: Run "build" step
39+
run: npm run build --if-present
40+
env:
41+
CI: true
42+
43+
- name: Run tests
44+
run: npm test
45+
env:
46+
CI: true

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
2-
2+
/yarn.lock
3+
/package-lock.json
34
/?.js

.travis.yml

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

0 commit comments

Comments
 (0)