1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2025-07-13 20:23:52 +02:00

example: service

This commit is contained in:
Earl Warren 2023-05-29 16:35:13 +02:00
parent a69ecf9f35
commit 9e59ef5abd
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
on: [push]
jobs:
test:
runs-on: ubuntu-latest
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-11
PGPASSWORD=postgres psql -h pgsql -U postgres -c '\dt' test