Skip to content

Commit

Permalink
Merge pull request #613 from strongloop/gh-action
Browse files Browse the repository at this point in the history
ci: add GH action and remove Travis CI integration
  • Loading branch information
agnes512 authored Feb 7, 2021
2 parents 7393fc5 + cf40784 commit f647796
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 21 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Continuous Integration

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 14]
mongodb-version: [4.4] # the latest stable version

steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: ${{ matrix.mongodb-version }}

- run: npm install
- run: npm test
env:
CI: true
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

0 comments on commit f647796

Please sign in to comment.