Skip to content

Commit

Permalink
downgrade to php 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danilin-em committed Apr 11, 2024
1 parent 26d6413 commit c33c263
Show file tree
Hide file tree
Showing 14 changed files with 1,608 additions and 4,245 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,12 @@ name: PHP CI
on: [push, pull_request]

jobs:
coding-standards:
name: Coding Standards
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.3]
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer, phpunit, xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run Coding Standards Check
run: composer run cs

phpstan:
name: PHPStan
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.3]
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer, phpunit, xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPStan
run: composer run phpstan

phpunit:
name: PHPUnit Tests
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.3]
php: [7.0]
steps:
- uses: actions/checkout@v2
- name: Set up PHP
Expand All @@ -56,21 +20,3 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPUnit Tests
run: composer run phpunit

infection:
name: Infection PHP
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.3]
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer, phpunit, xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run Infection PHP
run: composer run infection
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
.tmp
vendor
composer.phar
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

28 changes: 4 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@
],
"homepage": "https://github.com/danilin-em/test-memcached-lib",
"require": {
"php": "^8.3",
"php": "^7.0",
"ext-mbstring": "*"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"phpunit/phpunit": "^11.0",
"infection/infection": "^0.28.1",
"phpstan/phpstan": "^1.10",
"phpmd/phpmd": "^2.15",
"squizlabs/php_codesniffer": "^3.9"
"phpunit/phpunit": "^6.5"
},
"autoload": {
"psr-4": {
Expand All @@ -33,28 +29,12 @@
}
},
"scripts": {
"phpunit": "XDEBUG_IS_ACTIVE=1 XDEBUG_TRIGGER=XDEBUG_IS_ACTIVE XDEBUG_MODE=coverage,debug phpunit -c phpunit.xml --testdox",
"test-unit": "@phpunit --testsuite Unit",
"infection": [
"Composer\\Config::disableProcessTimeout",
"infection --threads=6 --min-msi=80 --min-covered-msi=80 --log-verbosity=all --show-mutations --only-covered"
],
"phpstan": "phpstan analyse --configuration=phpstan.neon --memory-limit=512M --no-progress --error-format=table --no-interaction --ansi",
"phpcs": ["mkdir -p .tmp && phpcs --standard=phpcs.xml --cache=./.tmp/.phpcs.cache"],
"phpcbf": ["mkdir -p .tmp && phpcbf --standard=phpcs.xml --cache=./.tmp/.phpcs.cache"],
"phpmd": ["phpmd ./src text ./phpmd.xml"],
"cs": ["@phpcs", "@phpmd"],
"phpunit": "XDEBUG_IS_ACTIVE=1 XDEBUG_TRIGGER=XDEBUG_IS_ACTIVE XDEBUG_MODE=coverage,debug phpunit -c phpunit.xml",
"ci": [
"@cs",
"@phpstan",
"@phpunit",
"@infection"
"@phpunit"
]
},
"config": {
"platform": {
"php": "8.3"
},
"allow-plugins": {
"infection/extension-installer": true
}
Expand Down
Loading

0 comments on commit c33c263

Please sign in to comment.