Skip to content

Commit

Permalink
Merge pull request loco-rs#466 from kepae/typo
Browse files Browse the repository at this point in the history
typo: "postgress" -> "postgres"
  • Loading branch information
kaplanelad authored Mar 3, 2024
2 parents 88e8c98 + f48cd40 commit 2539d10
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand All @@ -102,4 +102,4 @@ jobs:
env:
LOCO_CI_MODE: 1
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test
28 changes: 14 additions & 14 deletions .github/workflows/ci-generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand Down Expand Up @@ -61,50 +61,50 @@ jobs:
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

- name: model
run: cargo run -- generate model post title:string content:text && cargo build
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

- name: controller
run: cargo run -- generate controller post && cargo build && cargo test requests::post
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

- name: worker
run: cargo run -- generate worker report_worker && cargo build && cargo test workers::report_worker::test_run_report_worker_worker
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

- name: mailer
run: cargo run -- generate mailer birthday_mailer && cargo build
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

- name: task
run: cargo run -- generate task mytask && cargo build && cargo test tasks::mytask::test_can_run_mytask
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

- name: docker deployment
run: cargo run -- generate deployment
working-directory: ./examples/demo
env:
LOCO_DEPLOYMENT_KIND: docker
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

model_fields_generator:
name: Run Tests
Expand All @@ -126,9 +126,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand Down Expand Up @@ -198,4 +198,4 @@ jobs:
working-directory: ./examples/demo
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test
8 changes: 4 additions & 4 deletions .github/workflows/ci-starter-rest-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand All @@ -103,7 +103,7 @@ jobs:
working-directory: ./starters/rest-api
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

# generate_template:
# name: Generate Template
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci-starter-saas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand All @@ -103,7 +103,7 @@ jobs:
working-directory: ./starters/saas
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

# generate_template:
# name: Generate Template
Expand All @@ -126,9 +126,9 @@ jobs:
# postgres:
# image: postgres
# env:
# POSTGRES_DB: postgress_test
# POSTGRES_USER: postgress
# POSTGRES_PASSWORD: postgress
# POSTGRES_DB: postgres_test
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# ports:
# - "5432:5432"
# # Set health checks to wait until postgres has started
Expand Down Expand Up @@ -161,4 +161,4 @@ jobs:
# working-directory: ./loco-cli
# env:
# APP_REDIS_URI: redis://localhost:${{job.services.redis.ports[6379]}}
# APP_DATABASE_URI: postgres://postgress:postgress@localhost:5432/postgress_test
# APP_DATABASE_URI: postgres://postgres:postgres@localhost:5432/postgres_test
8 changes: 4 additions & 4 deletions starters/rest-api/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand All @@ -104,4 +104,4 @@ jobs:
args: --all-features --all
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test
8 changes: 4 additions & 4 deletions starters/saas/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_DB: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
Expand All @@ -104,5 +104,5 @@ jobs:
args: --all-features --all
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgress:postgress@localhost:5432/postgress_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

0 comments on commit 2539d10

Please sign in to comment.