Use NPM instead of yarn #1072
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, 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 |