Files
payload/.github/workflows/tests.yml
2020-04-15 00:22:53 -04:00

25 lines
498 B
YAML

name: Node.js CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: nohup npm run server &
env:
NODE_ENV: test
- run: npm run test:int # In-memory db + api tests
env:
CI: true