Skip to content

Commit

Permalink
Replacing Travis with GH Actions (#164)
Browse files Browse the repository at this point in the history
* Replacing Travis with GH Actions

* Adding GH action workflow file

* Fixing GH action.
  • Loading branch information
koresar authored Feb 8, 2021
1 parent b92bc90 commit cbdfb03
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on: [push, pull_request]
jobs:
test:
name: Test with Node.js v${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: ['10', '12', '14']
mongodb-version: [ 3.4, 3.6, 4.0, 4.2, 4.4 ]
agenda-version: [ 3.1, 4.0 ]
steps:
- uses: actions/checkout@v1

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

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- run: npm install

- name: Install agenda
run: npm i agenda@${{matrix.agenda-version}}

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

This file was deleted.

0 comments on commit cbdfb03

Please sign in to comment.