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:
parent
8f3dac79d7
commit
e7018d0d91
5 changed files with 64 additions and 35 deletions
|
@ -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
|
||||
|
|
30
testdata/example-service/runner-config.yaml
vendored
Normal file
30
testdata/example-service/runner-config.yaml
vendored
Normal 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:
|
Loading…
Add table
Add a link
Reference in a new issue