Commit 6f5b9e7
authored
CI: Fix MongoDB version + Makefile and PHPStan for local/CI dev experience (#503)
* chore: Update MongoDB service configuration in GitHub Actions workflow
- Upgraded MongoDB image from version 4.0 to 4.4 for improved features and security.
- Enhanced health check options for the MongoDB service to ensure better reliability during CI runs.
* chore: Add PHPStan for static analysis and update composer dependencies
- Introduced PHPStan as a development dependency for static code analysis.
- Updated composer.json to include PHPStan version 2.0 in the require-dev section.
- Created phpstan.neon.dist configuration file with specified analysis parameters and paths.
* feat: Add Makefile for Docker command management
- Introduced a Makefile to streamline Docker commands for the LexikTranslationBundle.
- Added commands for starting/stopping services, building images, running tests, and managing dependencies.
- Enhanced developer experience by providing a centralized help command for available operations.
* chore: Update project configuration and dependencies
- Enhanced .gitignore to include additional directories for Composer dependencies, IDE configurations, and cache files.
- Removed deprecated .php_cs configuration file and replaced it with .php-cs-fixer.dist.php for PHP-CS-Fixer setup.
- Updated composer.json to include friendsofphp/php-cs-fixer as a development dependency and adjusted other dependencies.
- Modified Makefile to use the new PHP-CS-Fixer configuration file.
- Updated Dockerfile to use PHP 8.3 instead of 8.4 for compatibility.
- Refactored LexikTranslationBundle.php to reorder use statements for better organization.
* chore: Update PHP version and adjust dependencies in composer files
- Set PHP platform version to 8.2.0 in composer.json for compatibility.
- Updated composer.lock to reflect changes in package versions, including downgrading doctrine/instantiator to 2.0.0 and symfony packages to 7.4.x versions.
- Adjusted PHP requirements for several packages to ensure compatibility with the new PHP version.
* chore: Update MongoDB extension version in composer files
- Added ext-mongodb version 2.1.4 to composer.json and platform-overrides in composer.lock for compatibility.
- Downgraded mongodb/mongodb package version to 2.1.2 and updated related references in composer.lock.
- Adjusted rector/rector version to 2.1.4 and updated vimeo/psalm version to 6.5.* in composer.lock.
* chore: Update .gitignore and remove .php-cs-fixer.cache
- Commented out the .php-cs-fixer.cache entry in .gitignore to prevent tracking of the cache file.
- Deleted the .php-cs-fixer.cache file to clean up the project and avoid unnecessary cache tracking.
* chore: Uncomment .php-cs-fixer.cache entry in .gitignore
- Restored the .php-cs-fixer.cache entry in .gitignore to ensure the cache file is ignored during version control, preventing unnecessary tracking.
* chore: Update .gitignore for improved clarity and consistency
- Translated comments in .gitignore to English for better understanding.
- Ensured consistency in formatting and terminology across all entries.
* docs: Add development setup instructions and Makefile details
- Updated README.md to include a new section on development setup, detailing the use of the Makefile for common tasks.
- Created docs/development.md to provide comprehensive instructions for running development tooling, including cross-platform usage with Docker Compose.
- Included commands for testing, static analysis, and code style management to enhance developer experience.1 parent f454256 commit 6f5b9e7
File tree
12 files changed
+9211
-20
lines changed- .github/workflows
- docs
12 files changed
+9211
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
8 | 17 | | |
9 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | | - | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
0 commit comments