expressCart/.github/workflows/tests.yaml

30 lines
747 B
YAML
Raw Normal View History

2020-03-22 20:09:39 +10:00
name: expressCart-tests
2020-03-22 19:24:55 +10:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
2020-03-22 19:37:33 +10:00
jobs:
2020-03-22 19:24:55 +10:00
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
2020-03-22 20:03:59 +10:00
mongodb-version: [4.0, 4.2]
2020-03-22 19:24:55 +10:00
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
2020-03-22 19:58:33 +10:00
- name: Start MongoDB v${{ matrix.mongodb-version }}
uses: superchargejs/mongodb-github-action@1.1.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
2020-03-22 19:24:55 +10:00
- name: npm install
run: npm i
- name: npm test
run: npm run test
env:
2020-03-22 20:03:59 +10:00
test: true
CI: true