-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (39 loc) · 945 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:9.6.17
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- uses: actions/[email protected]
- name: Use Node 16
uses: actions/[email protected]
with:
node-version: "16.x"
- name: Cache node modules
uses: actions/[email protected]
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies and Test
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm run test
env:
PORT: 12000
PGHOST: 127.0.0.1
PGUSER: postgres
PGPASSWORD: postgres
PGPORT: 5432
PGSSL: false