Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .github/workflows/ci.yaml → .github/workflows/example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: example
on:
push:
branches:
Expand All @@ -9,6 +9,7 @@ on:
env:
RUST_TOOLCHAIN: stable
TOOLCHAIN_PROFILE: minimal
CARGO_MANIFEST_DIR: ./example

jobs:
rustfmt:
Expand Down Expand Up @@ -58,30 +59,30 @@ jobs:

permissions:
contents: read
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "6379:6379"
postgres:
image: postgres
env:
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
options: --health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

# services:
# redis:
# image: redis
# options: >-
# --health-cmd "redis-cli ping"
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# ports:
# - "6379:6379"
# postgres:
# image: postgres
# env:
# POSTGRES_DB: postgres_test
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# ports:
# - "5432:5432"
# # Set health checks to wait until postgres has started
# options: --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5

steps:
- name: Checkout the code
Expand All @@ -96,7 +97,6 @@ jobs:
with:
command: test
args: --all-features --all
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

# env:
# REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
# DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test
14 changes: 2 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
**/config/local.yaml
**/config/*.local.yaml
**/config/production.yaml

# Generated by Cargo
# will have compiled files and executables
debug/
target/

# include cargo lock
!Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

*.sqlite
example/loco-openapi_test.sqlite-shm
example/loco-openapi_test.sqlite-wal
Loading
Loading