Skip to content

test: attempt to replicate issue #542 #145

test: attempt to replicate issue #542

test: attempt to replicate issue #542 #145

Workflow file for this run

jobs:
build:
environment: release
name: Build
runs-on: ubuntu-latest
steps:
- name: setup repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run build
timeout-minutes: 10
lint:
environment: release
name: Lint
runs-on: ubuntu-latest
steps:
- name: setup repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run lint
timeout-minutes: 10
test:
environment: release
name: 'Test node_version:${{ matrix.node_version }} test_only:${{ matrix.test_only }}'
runs-on: ubuntu-latest
services:
postgres:
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
image: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: setup repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '${{ matrix.node_version }}'
- run: npm ci
- env:
POSTGRES_DSN: postgres:postgres@localhost:5432
TEST_ONLY: '${{ matrix.test_only }}'
run: npm run test
strategy:
fail-fast: false
matrix:
test_only:
- utilities
- pg-integration
- postgres-integration
node_version:
- 20
max-parallel: 3
timeout-minutes: 10
name: Test and build
on:
pull_request:
branches:
- main
paths-ignore:
- '.editorconfig'
- '.husky/**'
- '.lintstagedrc.js'
- '.mergify.yml'
- '.nvmrc'
- 'README.md'
types:
- opened
- synchronize
- reopened
- ready_for_review