1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-19 01:46:16 +00: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

@ -18,7 +18,7 @@ jobs:
#
./forgejo-runner.sh setup
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
for example in echo container ; do
for example in echo container service ; do
echo "============================ example-$example ==================="
./forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token)
done

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