setup-forgejo/testdata/example-service/.forgejo/workflows/postgresql.yml
2023-07-08 15:58:42 +02:00

21 lines
429 B
YAML

on: [push]
jobs:
test:
runs-on: docker
container:
image: debian:bookworm
services:
pgsql:
image: postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
steps:
- run: |
apt-get update -qq
apt-get install -y -qq postgresql-client
PGPASSWORD=postgres psql -h pgsql -U postgres -c '\dt' test