Skip to content
Draft
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
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
zip -r formwork-${{ github.event.release.tag_name }}.zip . -x \
\*.git/\* \
\*.github/\* \
\*node_modules/\*
\*node_modules/\* \
\tests/\* \
\phpunit.xml.dist

- name: Upload release assets
uses: svenstaro/upload-release-action@v2
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.DS_Store
.php-cs-fixer.cache
.phpunit.cache

phpunit.xml

/backup/*
/cache/*
Expand All @@ -18,4 +21,7 @@
/site/users/accounts/*
/site/users/images/*

/tests/coverage/
/tests/tmp/

!.gitkeep
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"eslint.workingDirectories": ["./panel"],
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,
"prettier.tabWidth": 4,
"prettier.useEditorConfig": true,
"prettier.embeddedLanguageFormatting": "off",
"stylelint.configBasedir": "./panel",
"intelephense.files.exclude": ["**/tests/**/functions.php"]
}
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,22 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^2.0.3",
"rector/rector": "^2.0.3"
"rector/rector": "^2.0.3",
"phpunit/phpunit": "^12.0"
},
"scripts": {
"fix": "php-cs-fixer fix --config=formwork/.php-cs-fixer.php --cache-file=formwork/.php-cs-fixer.cache --verbose",
"fix:check": "php-cs-fixer check --config=formwork/.php-cs-fixer.php --cache-file=formwork/.php-cs-fixer.cache",
"fix": "php-cs-fixer fix --config=formwork/.php-cs-fixer.php --verbose",
"fix:check": "php-cs-fixer check --config=formwork/.php-cs-fixer.php",
"fix:tests": "php-cs-fixer fix tests/ --config=formwork/.php-cs-fixer.php --verbose",
"phpstan": "phpstan analyse --configuration=formwork/phpstan.neon",
"phpstan:baseline": "phpstan analyse --configuration=formwork/phpstan.neon --generate-baseline=formwork/phpstan-baseline.neon",
"rector": "rector --config=formwork/.rector.php",
"rector:check": "rector --dry-run --config=formwork/.rector.php",
"serve": [
"Composer\\Config::disableProcessTimeout",
"php bin/serve"
]
],
"test": "phpunit",
"test:coverage": "phpunit -d pcov.enabled=1 --coverage-html tests/coverage"
}
}
Loading
Loading