test
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 16s

This commit is contained in:
Flummi 2023-04-30 05:58:02 +02:00
parent dc986edfe4
commit 9157868699
2 changed files with 26 additions and 11 deletions

View File

@ -7,22 +7,37 @@ jobs:
services: services:
postgres: postgres:
image: postgres:15.2 image: postgres:15.2
env:
POSTGRES_USER: f0ck
POSTGRES_PASSWORD: f0ck
POSTGRES_DB: f0ck
POSTGRES_PORT: 5432
ports: ports:
- 5432:5432 - 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 19 node-version: 19
- run: npm ci - run: npm ci
- name: Setup database
- name: Install PostgreSQL client
run: |
apt-get update
apt-get-install --yes postgresql-client
- name: import f0ck database
run: psql -h postgres -d f0ck -U f0ck < f0ck.sql
env: env:
POSTGRES_HOST: postgres PGPASSWORD: f0ck
POSTGRES_USER: f0ck
POSTGRES_PASSWORD: f0ck - name: create directories
POSTGRES_DB: f0ck run: mkdir -p tmp public/ca deleted/{ca,b,t}
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
- run: psql f0ck < f0ck.sql - name: copy config
- run: mkdir -p public/ca deleted/{ca,b,t} run: cp config_example.json config.json
- run: cp config_example.json config.json

View File

@ -35,7 +35,7 @@
"sql": { "sql": {
"host": "localhost", "host": "localhost",
"user": "f0ck", "user": "f0ck",
"password": "", "password": "f0ck",
"database": "f0ck", "database": "f0ck",
"schema": "public", "schema": "public",
"multipleStatements": true "multipleStatements": true