Skip to content

add the ability to configure sslrootcert, sslkey and sslrootcert #288

add the ability to configure sslrootcert, sslkey and sslrootcert

add the ability to configure sslrootcert, sslkey and sslrootcert #288

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:
node-version: '20'
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r 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:
node-version: '20'
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
- run: pnpm run lint
- run: pnpm run -r 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 5s
--health-timeout 5s
--health-retries 5
--name my_postgres_container
ports:
- 5432:5432
steps:
- name: install psql
run: |
sudo apt-get update
sudo apt-get install --yes postgresql-client
- name: Increase max_connections and shared_buffers
run: |
docker exec -i my_postgres_container bash << EOF
sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf
sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' /var/lib/postgresql/data/postgresql.conf
EOF
- run: docker restart --time 0 my_postgres_container
- run: sleep 10
- run: docker exec my_postgres_container psql -U postgres -c 'SHOW max_connections;'
- name: setup repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node_version }}'
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
- env:
POSTGRES_DSN: 'postgres://postgres:postgres@localhost:5432'
TEST_ONLY: '${{ matrix.test_only }}'
run: pnpm run -r test
strategy:
fail-fast: false
matrix:
test_only:
- utilities
- pg-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