Skip to content

Commit 8014f47

Browse files
authored
Merge pull request #2 from NexVeridian/initializer
Initializer
2 parents 7d42555 + b14d3ef commit 8014f47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+7841
-1117
lines changed

.github/workflows/ci.yaml renamed to .github/workflows/example.yaml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: example
22
on:
33
push:
44
branches:
@@ -9,6 +9,7 @@ on:
99
env:
1010
RUST_TOOLCHAIN: stable
1111
TOOLCHAIN_PROFILE: minimal
12+
CARGO_MANIFEST_DIR: ./example
1213

1314
jobs:
1415
rustfmt:
@@ -58,30 +59,30 @@ jobs:
5859

5960
permissions:
6061
contents: read
61-
62-
services:
63-
redis:
64-
image: redis
65-
options: >-
66-
--health-cmd "redis-cli ping"
67-
--health-interval 10s
68-
--health-timeout 5s
69-
--health-retries 5
70-
ports:
71-
- "6379:6379"
72-
postgres:
73-
image: postgres
74-
env:
75-
POSTGRES_DB: postgres_test
76-
POSTGRES_USER: postgres
77-
POSTGRES_PASSWORD: postgres
78-
ports:
79-
- "5432:5432"
80-
# Set health checks to wait until postgres has started
81-
options: --health-cmd pg_isready
82-
--health-interval 10s
83-
--health-timeout 5s
84-
--health-retries 5
62+
63+
# services:
64+
# redis:
65+
# image: redis
66+
# options: >-
67+
# --health-cmd "redis-cli ping"
68+
# --health-interval 10s
69+
# --health-timeout 5s
70+
# --health-retries 5
71+
# ports:
72+
# - "6379:6379"
73+
# postgres:
74+
# image: postgres
75+
# env:
76+
# POSTGRES_DB: postgres_test
77+
# POSTGRES_USER: postgres
78+
# POSTGRES_PASSWORD: postgres
79+
# ports:
80+
# - "5432:5432"
81+
# # Set health checks to wait until postgres has started
82+
# options: --health-cmd pg_isready
83+
# --health-interval 10s
84+
# --health-timeout 5s
85+
# --health-retries 5
8586

8687
steps:
8788
- name: Checkout the code
@@ -96,7 +97,6 @@ jobs:
9697
with:
9798
command: test
9899
args: --all-features --all
99-
env:
100-
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
101-
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test
102-
100+
# env:
101+
# REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
102+
# DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
**/config/local.yaml
2-
**/config/*.local.yaml
3-
**/config/production.yaml
4-
51
# Generated by Cargo
62
# will have compiled files and executables
73
debug/
84
target/
95

106
# include cargo lock
117
!Cargo.lock
12-
13-
# These are backup files generated by rustfmt
14-
**/*.rs.bk
15-
16-
# MSVC Windows builds of rustc generate these, which store debugging information
17-
*.pdb
18-
19-
*.sqlite
8+
example/loco-openapi_test.sqlite-shm
9+
example/loco-openapi_test.sqlite-wal

0 commit comments

Comments
 (0)