setup-forgejo/testdata/example-service/.forgejo/workflows/postgresql.yml

22 lines
429 B
YAML
Raw Normal View History

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