mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 01:20:56 -05:00
example: service
This commit is contained in:
parent
a69ecf9f35
commit
9e59ef5abd
2 changed files with 20 additions and 1 deletions
|
@ -18,7 +18,7 @@ jobs:
|
||||||
#
|
#
|
||||||
./forgejo-runner.sh setup
|
./forgejo-runner.sh setup
|
||||||
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
||||||
for example in echo container ; do
|
for example in echo container service ; do
|
||||||
echo "============================ example-$example ==================="
|
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)
|
./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
|
done
|
||||||
|
|
19
testdata/example-service/.forgejo/workflows/test.yml
vendored
Normal file
19
testdata/example-service/.forgejo/workflows/test.yml
vendored
Normal 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
|
Loading…
Reference in a new issue