mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-22 13:43:15 +02:00
Converted redis to a service in CI
This commit is contained in:
10
.github/workflows/test-suite.yaml
vendored
10
.github/workflows/test-suite.yaml
vendored
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user