Skip to content

Commit

Permalink
Merge e74aa60 into 48a5778
Browse files Browse the repository at this point in the history
  • Loading branch information
wmurphyrd committed Jan 29, 2023
2 parents 48a5778 + e74aa60 commit 74487ed
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 15 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Check tests, coverage, and lint

on:
push:
branches: [ "master", "main" ]
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
# tests fail on 18.x see #87
node-version: [14.x, 16.x]
mongodb-version: ['5.0']

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.8.0
with:
mongodb-version: ${{ matrix.mongodb-version }}

- run: npm ci
- run: npm run lint
- run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"test": "jasmine",
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc npm test && nyc report --reporter=text-lcov > lcov.info",
"lint": "standard"
},
"repository": {
Expand Down

0 comments on commit 74487ed

Please sign in to comment.