Skip to content

Commit f647796

Browse files
authored
Merge pull request #613 from strongloop/gh-action
ci: add GH action and remove Travis CI integration
2 parents 7393fc5 + cf40784 commit f647796

File tree

2 files changed

+36
-21
lines changed

2 files changed

+36
-21
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

.travis.yml

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

0 commit comments

Comments
 (0)