Skip to content

Commit 1f2297d

Browse files
author
Agnes Lin
committed
ci: convert from Travis to GH action
Signed-off-by: Agnes Lin <[email protected]>
1 parent 7393fc5 commit 1f2297d

File tree

2 files changed

+46
-21
lines changed

2 files changed

+46
-21
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [10, 12, 14]
17+
mongodb-version: [4.4] # the latest stable version
18+
19+
steps:
20+
- name: Git checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Start MongoDB
29+
uses: supercharge/[email protected]
30+
with:
31+
mongodb-version: ${{ matrix.mongodb-version }}
32+
33+
- run: npm install
34+
- run: npm test
35+
env:
36+
CI: true
37+
38+
# - run: NODE_ENV=test npm run coverage
39+
# env:
40+
# CI: true
41+
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
42+
43+
# - name: Coveralls
44+
# uses: coverallsapp/github-action@master
45+
# with:
46+
# github-token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

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

0 commit comments

Comments
 (0)