Skip to content

Update actions/setup-node action to v4 #135

Update actions/setup-node action to v4

Update actions/setup-node action to v4 #135

Workflow file for this run

name: main
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: postgres
POSTGRES_DB: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Use Node.js 14.x
uses: actions/setup-node@v4
with:
node-version: '14.x'
- run: npm ci
- run: npm run ci:test
env:
DATABASE_URL: 'postgresql://root:postgres@localhost:5432/example'