Skip to content

Commit

Permalink
Move env blovk inside step
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-nil committed Jan 15, 2024
1 parent ef54578 commit b7f85bf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ on:
- swift-ticketing/**
branches: [ "ci" ]

env:
POSTGRES_DB: swift_ticketing
POSTGRES_USER: swift_user
POSTGRES_PASSWORD: swift_password

jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: swift_ticketing
POSTGRES_USER: swift_user
POSTGRES_PASSWORD: swift_password
ports:
- 5432:5432

Expand All @@ -28,6 +27,10 @@ jobs:
working-directory: swift-ticketing
- name: Create test config file
working-directory: swift-ticketing
env:
POSTGRES_DB: swift_ticketing
POSTGRES_USER: swift_user
POSTGRES_PASSWORD: swift_password
run: |
touch resources/config.test.edn
echo \
Expand All @@ -40,6 +43,7 @@ jobs:
:port 5432 \
:dbname $POSTGRES_DB \
:username $POSTGRES_USER \
:user $POSTGRES_USER \
:password $POSTGRES_PASSWORD \
:schema \"swift_ticketing\"}}"
- name: Run tests
Expand Down

0 comments on commit b7f85bf

Please sign in to comment.