Skip to content

Commit d5cb156

Browse files
authored
refactor: bindings and tests (#117)
* refactor: bindings and tests * fix: console command tests * fix: make tests green * ci: add pdo extension * ci: add pdo extension * ci: add pdo extension * ci: add missing extensions * ci: add missing extensions * ci: add missing extensions * ci: add debug * ci: add debug * ci: add debug * ci: add debug * ci: add debug * chore: rename phpunit config * fix: remove phpunit action * fix: remove phpunit action * fix: remove phpunit action * chore: set coverage to xdebug mode * chore: disable phpstan for now
1 parent 4661798 commit d5cb156

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1049
-811
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
uses: shivammathur/setup-php@v2
2727
with:
2828
php-version: ${{ matrix.php }}
29-
extensions: dom, curl, libxml, mbstring, zip, fileinfo
29+
extensions: mbstring, fileinfo, pdo_mysql, pdo
3030
ini-values: error_reporting=E_ALL
31-
tools: composer:v2
32-
coverage: none
31+
tools: composer:v2, pecl
32+
coverage: xdebug
3333

3434
- name: ♻️ Load cached dependencies
3535
id: cached-composer-dependencies
@@ -48,17 +48,12 @@ jobs:
4848
PHP_CS_FIXER_IGNORE_ENV: true
4949

5050
- name: 🧪 Execute phpunit tests
51-
uses: php-actions/phpunit@v3
5251
env:
5352
XDEBUG_MODE: coverage
54-
with:
55-
bootstrap: vendor/autoload.php
56-
configuration: phpunit.xml.dist
57-
php_extensions: xdebug
58-
args: tests --coverage-clover ./coverage.xml
53+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
5954

60-
- name: 📝 Run static analysis using phpstan
61-
run: make stan
55+
# - name: 📝 Run static analysis using phpstan
56+
# run: make stan
6257

6358
- name: 📤 Upload coverage report to Codecov
6459
uses: codecov/codecov-action@v3

composer.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"cycle/orm": "^2.3",
2424
"cycle/schema-migrations-generator": "^2.1",
2525
"cycle/schema-renderer": "^1.2",
26-
"laravel/framework": "*",
26+
"illuminate/console": "^10.9",
27+
"illuminate/contracts": "^10.9",
28+
"illuminate/support": "^10.9",
2729
"spiral/attributes": "^3.1",
2830
"symfony/console": "^6.2"
2931
},
@@ -51,8 +53,8 @@
5153
"src/helpers.php"
5254
],
5355
"psr-4": {
54-
"WayOfDev\\Cycle\\": "src",
55-
"WayOfDev\\Cycle\\Database\\Factories\\": "database/factories"
56+
"WayOfDev\\Cycle\\": "src/",
57+
"WayOfDev\\Cycle\\Database\\Factories\\": "database/factories/"
5658
}
5759
},
5860
"autoload-dev": {
@@ -66,7 +68,7 @@
6668
"cs-diff": "php vendor/bin/php-cs-fixer fix --dry-run -v --diff",
6769
"test": "php vendor/bin/pest",
6870
"test-cc": "php vendor/bin/pest --coverage",
69-
"stan": "php vendor/bin/phpstan analyse",
71+
"stan": "php vendor/bin/phpstan analyse --memory-limit=256M",
7072
"stan-ci": "php vendor/bin/phpstan analyse --error-format=github",
7173
"post-autoload-dump": [
7274
"@php vendor/bin/testbench package:discover --ansi"
@@ -93,5 +95,7 @@
9395
"indent-size": 4,
9496
"indent-style": "space"
9597
}
96-
}
98+
},
99+
"minimum-stability": "dev",
100+
"prefer-stable": true
97101
}

0 commit comments

Comments
 (0)