Skip to content

feat: package.json

feat: package.json #71

Workflow file for this run

name: CI
on:
push:
branches:
- master
- database/postgres
pull_request:
branches:
- master
- database/postgres
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start Postgres
uses: harmon758/postgresql-action@v1
with:
postgresql version: '12'
postgresql db: 'postgres'
postgresql user: 'postgres'
postgresql password: 'mysecretpassword'
- name: Fetch dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests and generate coverage report
run: npm test