Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danilin-em committed Mar 27, 2024
1 parent 6a7bc29 commit 7a4c80f
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 284 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
.tmp
vendor
76 changes: 76 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
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]
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 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
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
],
"homepage": "https://github.com/danilin-em/test-memcached-lib",
"require": {
"php": ">=7.4",
"php": "^8.3",
"ext-mbstring": "*"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"phpunit/php-code-coverage": "10.1.10",
"phpunit/phpunit": "^10.1",
"infection/infection": "^0.27.11",
"phpunit/phpunit": "^11.0",
"infection/infection": "^0.28.1",
"phpstan/phpstan": "^1.10",
"phpmd/phpmd": "^2.15",
"squizlabs/php_codesniffer": "^3.9"
Expand Down Expand Up @@ -53,6 +52,9 @@
]
},
"config": {
"platform": {
"php": "8.3"
},
"allow-plugins": {
"infection/extension-installer": true
}
Expand Down
Loading

0 comments on commit 7a4c80f

Please sign in to comment.