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

run service example in the CI

This commit is contained in:
Earl Warren 2023-07-08 14:06:13 +02:00
parent 8f3dac79d7
commit e7018d0d91
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 64 additions and 35 deletions

View file

@ -3,6 +3,8 @@ on: [push]
jobs:
test:
runs-on: docker
container:
image: debian:bookworm
services:
pgsql:
@ -15,5 +17,5 @@ jobs:
steps:
- run: |
apt-get update -qq
apt-get install -y -qq postgresql-client-11
apt-get install -y -qq postgresql-client
PGPASSWORD=postgres psql -h pgsql -U postgres -c '\dt' test

View file

@ -0,0 +1,30 @@
log:
level: info
runner:
file: .runner
capacity: 1
env_file: .env
timeout: 3h
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels: []
cache:
enabled: false
dir: ""
host: ""
port: 0
container:
network: ""
privileged: false
options:
workdir_parent:
valid_volumes: []
docker_host: ""
host:
workdir_parent: