Skip to content

Commit

Permalink
feat: Remove obsolete base class
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Oct 15, 2024
1 parent c7e7b82 commit 9e64124
Show file tree
Hide file tree
Showing 19 changed files with 1,648 additions and 716 deletions.
5 changes: 5 additions & 0 deletions .github/php-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

find "$SCRIPT_PATH/../src" -name '*.php' -exec php -l '{}' \;
23 changes: 22 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '!stage'

env:
php_version: 7.1
php_version: 8.0
phpunit_version: 4
composer_version: 1

Expand All @@ -34,3 +34,24 @@ jobs:

- name: Run PHPCS
run: php vendor/bin/phpcs --standard=PSR2 src/

check_php_syntax:
name: Check if PHP files are compatible
if: |
!(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip ci]')) &&
!(github.event_name == 'pull_request' && contains(join(github.event.pull_request.title, github.event.pull_request.body), '[skip ci]'))
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
steps:
- uses: actions/checkout@v2

- uses: php-actions/composer@v6
with:
version: ${{ env.composer_version }}
php_version: ${{ matrix.php_version }}

- uses: korelstar/phplint-problem-matcher@v1

- run: docker run -v "$(pwd):/app" -w /app --rm -it php:${{ matrix.php_version }} .github/php-lint
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Created by .ignore support plugin (hsz.mobi)
/vendor
.idea/
node_modules/
/vendor/
/.idea/
/node_modules/
/.phpunit.result.cache
/var/
12 changes: 7 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@
"name": "makaira/shared-libs",
"type": "library",
"require-dev": {
"phpunit/phpunit": "^4.0",
"phpunit/phpunit": "^9.5",
"pdepend/pdepend": "@stable",
"phpmd/phpmd": "@stable",
"squizlabs/php_codesniffer": "@stable"
},
"require": {
"kore/data-object": "1.3"
"php": "^7.0 | ^8.0",
"ext-json": "*",
"ext-curl": "*"
},
"autoload": {
"psr-4": {
"Makaira\\": "src/"
}
},
"config": {
"platform": {
"php": "5.6.40"
"autoload-dev": {
"psr-4": {
"Makaira\\Test\\": "tests/"
}
}
}
Loading

0 comments on commit 9e64124

Please sign in to comment.