diff options
author | 2024-08-24 19:18:44 +0100 | |
---|---|---|
committer | 2024-08-24 19:32:14 +0100 | |
commit | ff3369cee16ef8b80c8f5c3d0b666eea2986c07f (patch) | |
tree | 13316406ad7e2c3260c787ab24e877657a3537e6 /.github | |
parent | Install all deps in CI for tests (diff) |
Add postgres to testing CI
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint-backend.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/lint-backend.yaml b/.github/workflows/lint-backend.yaml index f1715d5..62fad71 100644 --- a/.github/workflows/lint-backend.yaml +++ b/.github/workflows/lint-backend.yaml @@ -4,6 +4,16 @@ on: jobs: lint: runs-on: ubuntu-latest + services: + postgres: + image: postgres:16 + env: + POSTGRES_USER: backend + POSTGRES_PASSWORD: backend + POSTGRES_DB: backend + ports: + - 5432/tcp + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,3 +42,8 @@ jobs: - name: Run tests run: make test + env: + BACKEND_SIGNING_KEY: for-testing-use-only + BACKEND_DATABASE_URL: postgresql+psycopg_async://backend:backend@localhost:${{ job.services.postgres.ports[5432] }}/backend + BACKEND_SUPER_ADMIN_TOKEN: hunter2 + BACKEND_PRINTFUL_TOKEN: not-valid |