From ac5c6ea0b5ce78fec966e0b4e2f74c014ad4256d Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 30 Apr 2023 05:48:27 +0200 Subject: [PATCH] CI runner with postgresql --- .gitea/workflows/build.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3ea0a33..4ee4600 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -2,12 +2,27 @@ name: fetch npm modules run-name: fetch npm modules on: [push] jobs: - Explore-Gitea-Actions: + f0ck the f0cker: runs-on: ubuntu-latest + services: + postgres: + image: postgres:15.2 + ports: + - 5432:5432 + 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 - - run: npm install + - name Setup database + 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