From 1000ab04c63df775494c89ef399dd9f84ca0323e Mon Sep 17 00:00:00 2001 From: AbigailDeng Date: Wed, 17 Jul 2024 15:42:29 +0800 Subject: [PATCH] feat: redis --- .github/workflows/github-pages.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index bd24ad9..eaa4cf0 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -26,6 +26,20 @@ concurrency: cancel-in-progress: false jobs: + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 # Build job build: runs-on: ubuntu-latest