mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-07-13 20:23:52 +02:00
example: service
This commit is contained in:
parent
a69ecf9f35
commit
9e59ef5abd
2 changed files with 20 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue