Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
container:
image: skpr/php-cli:${{ matrix.php }}-dev-v2-latest
options: --user root
strategy:
matrix:
php: ["8.4", "8.5"]
composer-opts: ["", "--prefer-lowest"]
steps:
- uses: actions/checkout@v7
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-interaction --optimize-autoloader ${{ matrix.composer-opts }}
- name: 🧹 PHP CodeSniffer
run: ./bin/phpcs --report=checkstyle -q | ./bin/cs2pr
- name: 🧹 PHPStan
run: ./bin/phpstan --memory-limit=-1 --error-format=github analyse
- name: ➕ Add matcher
run: |
cat << 'EOF' > .github/phpunit-failure.json
{"problemMatcher":[{"owner":"phpunit-failure","severity":"error","pattern":[{"regexp":"##teamcity\\[testFailed[^\\]]*message='([^']*)'[^\\]]*details='([^:]+):(\\d+)","message":1,"file":2,"line":3}]}]}
EOF
echo "::add-matcher::.github/phpunit-failure.json"
- name: ⚡ Run Unit Tests
run: ./bin/phpunit --teamcity
- name: ➖ Remove matcher
if: always()
run: echo "::remove-matcher owner=phpunit-failure::"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/bin/
/vendor/
/composer.lock
*.sqlite
.phpunit.result.cache
.idea
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

A PHP Doctrine DBAL implementation for Nested Sets.

[![CircleCI](https://circleci.com/gh/previousnext/nested-set.svg?style=svg)](https://circleci.com/gh/previousnext/nested-set)

## Using

### Create table schema
Expand Down Expand Up @@ -67,7 +65,7 @@ See `\PNX\NestedSet\NestedSetInterface` for many more methods that can be used f
To install all dependencies, run:

```
make init
composer install
```

### Linting
Expand All @@ -77,13 +75,13 @@ Uses the Drupal coding standard.
To validate code sniffs run:

```
make lint-php
./bin/phpcs
```

To automatically fix code sniff issues, run:

```
make fix-php
./bin/phpcbf
```


Expand All @@ -92,5 +90,5 @@ make fix-php
To run all phpunit tests, run:

```
make test
./bin/phpunit
```
18 changes: 0 additions & 18 deletions circle.yml

This file was deleted.

21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"doctrine/dbal": "^3.3"
"php": ">=8.2",
"doctrine/dbal": "^3.3 || ^4.0"
},
"require-dev": {
"ext-pdo_sqlite": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"drupal/coder": "^8.3.12",
"pear/console_table": "^1.3",
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpunit/phpunit": "^8.5 || ^9.3",
"squizlabs/php_codesniffer": "^3.7.1"
"dealerdirect/phpcodesniffer-composer-installer": "^1.2.1",
"drupal/coder": "^9.0.1",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^2.2.5",
"phpstan/phpstan-deprecation-rules": "^2.0.4",
"phpunit/phpunit": "^11.5.56",
"squizlabs/php_codesniffer": "^4.0.1",
"staabm/annotate-pull-request-from-checkstyle": "^1.8.7"
},
"autoload": {
"psr-4": {
Expand Down
Loading