Skip to content

ci: add postgres container to run integration tests #14

ci: add postgres container to run integration tests

ci: add postgres container to run integration tests #14

Workflow file for this run

name: Validate
on:
push:
branches:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
test:
runs-on: ubuntu-latest
services:
image: postgres:13.12
ports:
- "5432:5432"

Check failure on line 25 in .github/workflows/validate.yaml

View workflow run for this annotation

GitHub Actions / Validate

Invalid workflow file

The workflow is not valid. .github/workflows/validate.yaml (Line: 25, Col: 9): A sequence was not expected .github/workflows/validate.yaml (Line: 27, Col: 9): Unexpected value 'POSTGRES_USER'
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: megahertz
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test unit