mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 02:08:36 +00:00
Kd/fix redis unit test (#24650)
Replaces #24641 Currently, unit tests fail when run locally (unless users have minio instance running). This PR only requires redis unit tests if in CI. - Only run redis unit tests when `CI` env variable is set - Add minio as a service in unit tests actions
This commit is contained in:
10
.github/workflows/pull-db_test.yml
vendored
10
.github/workflows/pull-db_test.yml
vendored
@@ -110,6 +110,16 @@ jobs:
|
||||
- "143:143"
|
||||
- "587:587"
|
||||
- "993:993"
|
||||
redis:
|
||||
image: redis
|
||||
# Set health checks to wait until redis has started
|
||||
options: >-
|
||||
--health-cmd "redis-cli ping"
|
||||
--health-interval 5s
|
||||
--health-timeout 3s
|
||||
--health-retries 10
|
||||
ports:
|
||||
- 6379:6379
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
|
Reference in New Issue
Block a user