You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In saas and rest-api starters we have .github workflows out of the box that should run fmt,clippy and test.
the idea behind it is to getting automatically working CI.
When running cargo fmt test see here we should also adding service section with postgress and redis
example:
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: postgress_test
POSTGRES_USER: postgress
POSTGRES_PASSWORD: postgress
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
In
saas
andrest-api
starters we have.github
workflows out of the box that should run fmt,clippy and test.the idea behind it is to getting automatically working CI.
When running
cargo fmt test
see here we should also adding service section with postgress and redisexample:
and also add
section in the test
The text was updated successfully, but these errors were encountered: