Skip to content

Commit

Permalink
Fix unit tests for PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Feb 14, 2024
1 parent 0d0ad7c commit f89494c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @Author: Roni Laukkarinen
# @Date: 2023-02-15 17:39:37
# @Last Modified by: Roni Laukkarinen
# @Last Modified time: 2024-02-14 17:02:41
# @Last Modified time: 2024-02-14 17:07:55
name: PHP

on: [push, pull_request]
Expand Down Expand Up @@ -35,10 +35,6 @@ jobs:
php_version: "7.4"
version: "2.3.7"
args: "--ignore-platform-reqs --optimize-autoloader"
run: |
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global require --dev wp-coding-standards/wpcs:"^3.0"
composer global require --dev phpcompatibility/php-compatibility:"*"

- name: Run PHP_CodeSniffer
run: |
Expand Down
11 changes: 11 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/php-compatibility": "*"
}
}

0 comments on commit f89494c

Please sign in to comment.