Converted redis to a service in CI

This commit is contained in:
Chris Kankiewicz
2021-02-23 21:41:28 -07:00
parent 8076862029
commit c033956f88

View File

@@ -6,6 +6,11 @@ jobs:
name: PHP Checks & Tests
runs-on: 'ubuntu-latest'
services:
redis:
image: redis:6.2
options: --health-cmd "redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0']
@@ -32,11 +37,6 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Start Redis
uses: supercharge/redis-github-action@1.2.0
with:
redis-version: 6
- name: Validate Composer Files
run: composer validate