diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 4281caa..5e65f92 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -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 diff --git a/testdata/example-service/.forgejo/workflows/test.yml b/testdata/example-service/.forgejo/workflows/test.yml new file mode 100644 index 0000000..68e6505 --- /dev/null +++ b/testdata/example-service/.forgejo/workflows/test.yml @@ -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