Use Github actions to run tests

This commit is contained in:
Andris Reinman 2022-07-05 12:04:18 +03:00
parent 04ba496dc7
commit 5b6b5067af
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
2 changed files with 21 additions and 19 deletions

21
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Run tests
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
node: [16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test

View file

@ -1,19 +0,0 @@
language: node_js
sudo: false
services:
- mongodb
- redis-server
node_js:
- 10
- 12
- 14
- 16
notifications:
email:
- andris@kreata.ee
webhooks:
urls:
- https://webhooks.gitter.im/e/0ed18fd9b3e529b3c2cc
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false