Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 3, 2024
1 parent cc4e99f commit aafdcd4
Showing 1 changed file with 54 additions and 4 deletions.
58 changes: 54 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ env:
APP_URL: 'localhost'

# redis
REDIS_HOST: 'redis'
REDIS_HOST: 'localhost'
REDIS_PORT: 6379
REDIS_PASSWORD: 'password'

# database
DB_PORT: 5432
DB_HOST: 'postgres'
DB_USERNAME: 'username'
DB_PASSWORD: 'password'
DB_HOST: 'localhost'
DB_USERNAME: 'postgres'
DB_PASSWORD: 'postgres'
DB_DATABASE: 'database'

# email
Expand All @@ -41,6 +41,31 @@ jobs:
name: Unit tests
runs-on: ubuntu-latest

services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: database
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
node-version: [22.x]
Expand All @@ -67,6 +92,31 @@ jobs:
name: Browser tests
runs-on: ubuntu-latest

services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: database
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down

0 comments on commit aafdcd4

Please sign in to comment.