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
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, fileinfo
extensions: mbstring, fileinfo, pdo_mysql, pdo
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none
tools: composer:v2, pecl
coverage: xdebug

- name: ♻️ Load cached dependencies
id: cached-composer-dependencies
Expand All @@ -48,17 +48,12 @@ jobs:
PHP_CS_FIXER_IGNORE_ENV: true

- name: 🧪 Execute phpunit tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml.dist
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml
run: vendor/bin/phpunit --coverage-clover=coverage.xml

- name: 📝 Run static analysis using phpstan
run: make stan
# - name: 📝 Run static analysis using phpstan
# run: make stan

- name: 📤 Upload coverage report to Codecov
uses: codecov/codecov-action@v3
Expand Down
14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"cycle/orm": "^2.3",
"cycle/schema-migrations-generator": "^2.1",
"cycle/schema-renderer": "^1.2",
"laravel/framework": "*",
"illuminate/console": "^10.9",
"illuminate/contracts": "^10.9",
"illuminate/support": "^10.9",
"spiral/attributes": "^3.1",
"symfony/console": "^6.2"
},
Expand Down Expand Up @@ -51,8 +53,8 @@
"src/helpers.php"
],
"psr-4": {
"WayOfDev\\Cycle\\": "src",
"WayOfDev\\Cycle\\Database\\Factories\\": "database/factories"
"WayOfDev\\Cycle\\": "src/",
"WayOfDev\\Cycle\\Database\\Factories\\": "database/factories/"
}
},
"autoload-dev": {
Expand All @@ -66,7 +68,7 @@
"cs-diff": "php vendor/bin/php-cs-fixer fix --dry-run -v --diff",
"test": "php vendor/bin/pest",
"test-cc": "php vendor/bin/pest --coverage",
"stan": "php vendor/bin/phpstan analyse",
"stan": "php vendor/bin/phpstan analyse --memory-limit=256M",
"stan-ci": "php vendor/bin/phpstan analyse --error-format=github",
"post-autoload-dump": [
"@php vendor/bin/testbench package:discover --ansi"
Expand All @@ -93,5 +95,7 @@
"indent-size": 4,
"indent-style": "space"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading