actions: services: cover the case when no container is specified #127

Merged
earl-warren merged 1 commit from refs/pull/127/head into main 2024-04-27 08:53:39 +00:00

View file

@ -2,7 +2,23 @@ on: [push]
jobs:
#
# No volume involved
# No volume involved & the container is implicit
#
simple-no-container:
runs-on: docker
services:
pgsql:
image: code.forgejo.org/oci/postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: postgres
steps:
- run: |
apt-get update -qq
apt-get install -y -qq postgresql-client
PGPASSWORD=postgres psql -h pgsql -U postgres -c '\dt' test
#
# No volume involved & the container is explicit
#
simple:
runs-on: docker