From 91578686998a2f781e601fb8978700bf49c850a9 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 30 Apr 2023 05:58:02 +0200 Subject: [PATCH] test --- .gitea/workflows/build.yaml | 35 +++++++++++++++++++++++++---------- config_example.json | 2 +- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 87e0d7c..ec71b15 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -7,22 +7,37 @@ jobs: services: postgres: image: postgres:15.2 + env: + POSTGRES_USER: f0ck + POSTGRES_PASSWORD: f0ck + POSTGRES_DB: f0ck + POSTGRES_PORT: 5432 ports: - 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: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 19 - 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: - POSTGRES_HOST: postgres - POSTGRES_USER: f0ck - POSTGRES_PASSWORD: f0ck - POSTGRES_DB: f0ck - POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} - - run: psql f0ck < f0ck.sql - - run: mkdir -p public/ca deleted/{ca,b,t} - - run: cp config_example.json config.json + PGPASSWORD: f0ck + + - name: create directories + run: mkdir -p tmp public/ca deleted/{ca,b,t} + + - name: copy config + run: cp config_example.json config.json diff --git a/config_example.json b/config_example.json index c67bd3f..07e545d 100644 --- a/config_example.json +++ b/config_example.json @@ -35,7 +35,7 @@ "sql": { "host": "localhost", "user": "f0ck", - "password": "", + "password": "f0ck", "database": "f0ck", "schema": "public", "multipleStatements": true