From ffdd1865bbb417e8872a5b6b1498da61b6e2a85a Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 11 Jun 2021 20:02:08 +0530 Subject: [PATCH] run redis as service --- .github/workflows/coverage.yml | 7 ++++--- .github/workflows/linux.yml | 8 +++++--- config/default.toml | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 97982668..83afdb24 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -32,6 +32,10 @@ jobs: --health-retries 5 ports: - 5432:5432 + mcaptcha-redis: + image: mcaptcha/cache + ports: + - 6379:6379 steps: - uses: actions/checkout@v2 @@ -45,9 +49,6 @@ jobs: target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: run mcaptcha cache redis instance - run: docker run -d -p 6379:6379 mcaptcha/cache - - uses: actions/setup-node@v2 with: node-version: '14.x' diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 772e53b8..50f9869b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -33,6 +33,11 @@ jobs: --health-retries 5 ports: - 5432:5432 + mcaptcha-redis: + image: mcaptcha/cache + ports: + - 6379:6379 + steps: - uses: actions/checkout@v2 @@ -50,9 +55,6 @@ jobs: with: node-version: '14.x' - - name: run mcaptcha cache redis instance - run: docker run -d -p 6379:6379 mcaptcha/cache - - name: Install JavaScript Dependencies run: yarn install diff --git a/config/default.toml b/config/default.toml index b31c5ed2..f310bef9 100644 --- a/config/default.toml +++ b/config/default.toml @@ -46,5 +46,5 @@ pool = 4 # port = "5432" # username = "batman" # password = "somereallycomplicatedBatmanpassword" -url = "redis://127.0.0.1:6370" +url = "redis://127.0.0.1" pool = 4