Skip to content

Storage/Redis & RedisNG: Remove usage of str_replace to get metrics a… #486

Storage/Redis & RedisNG: Remove usage of str_replace to get metrics a…

Storage/Redis & RedisNG: Remove usage of str_replace to get metrics a… #486

Workflow file for this run

name: Code Checks
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
name: Code Checks
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-code-checks
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Run PHP Code Sniffer
run: ./vendor/bin/phpcs
phpstan:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "8.4"
name: PHPStan on PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-code-checks
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: "cs2pr"
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Run PHPStan
run: "vendor/bin/phpstan analyse --autoload-file tests/bootstrap.php --error-format=checkstyle | cs2pr"