Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default paths for config files #2765

Merged
merged 6 commits into from
Dec 2, 2022
Merged

Use default paths for config files #2765

merged 6 commits into from
Dec 2, 2022

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Nov 30, 2022

Description (*)

(2nd last planed workflow update for next time)

I just moved config files for phpcs and other tools to their default paths (for being automatically detected).

  • no need to set config path in CLI command
  • you can copy config files and remove .dist from filename to use your config
  • changed workflow to run unit tests and php-syntax check on schedule
  • updadet README badges

Manual testing scenarios (*)

  1. run commands w/o setting config path (e,g, vendor/bin/phpstan analyze)
  2. Note: Using configuration file /***/phpstan.dist.neon. should show up

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

Sven Reichel added 2 commits November 30, 2022 03:09
# Conflicts:
#	phpstan.dist.baseline.neon
Sven Reichel added 2 commits November 30, 2022 06:06
- added badges
- added links to workflows
- shorter workflow names
sreichel referenced this pull request Nov 30, 2022
* PHP-CS-Fixer fixes

Signed-off-by: Sven Reichel <github-sr@hotmail.com>

* Updated workflow

Signed-off-by: Sven Reichel <github-sr@hotmail.com>

* Added php-cs-fixer workflow

Signed-off-by: Sven Reichel <github-sr@hotmail.com>

* Added PHPCompatibility check

* PHPCompatibility check can fail

* Fixes: Node.js 12 actions are deprecated

* Fixes: PSR12.ControlStructures.ControlStructureSpacing.LineIndent

* Fixes: PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine

* Dond check CM_Redis every time

* Add .php-cs-fixer.cache to .gitignore

* Fixes class name (wrong place ... i know)

* Minor fixes

* Combined workflows

* Added app/Mage.php and files from root to rulesets

* Remove unused phpstan_experimental_level.neon

* Updated phpstan.neon (for upcoming commits)

* Set PhpStan level to 5 (from 3)

* Update phpstan to v1.9.2

* Updated phpstan-baseline.neon

* Updated phpstan-baseline.neon

* Update app/code/core/Mage/Tag/Model/Resource/Tag.php

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

* Update lib/Varien/Db/Adapter/Pdo/Mysql.php

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

* Set workflow include paths (skip other files)

* Updated labeler.yml

* Removed travis label

* Improved workflow (#26)

* Fixed grep modifier to get correct count

* Updated ECG sniff baseline

* Added Mage_Centinal to PhpStan checks

* Added Mage_PaypalUk to PhpStan checks

* Update app/code/core/Mage/Paypal/Model/Config.php

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

Signed-off-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
@fballiano
Copy link
Contributor

I don't love the idea of all these new files in the main folder but I see your point

@sreichel
Copy link
Contributor Author

sreichel commented Dec 1, 2022

I also like a "clean" root directory, but these files belong there, not to .github/.

fballiano
fballiano previously approved these changes Dec 1, 2022
ADDISON74
ADDISON74 previously approved these changes Dec 2, 2022
@fballiano
Copy link
Contributor

sadly there's a conflict now

# Conflicts:
#	phpstan.dist.baseline.neon
@sreichel sreichel dismissed stale reviews from ADDISON74 and fballiano via fe87173 December 2, 2022 13:26
@fballiano fballiano merged commit 8ec52e6 into OpenMage:1.9.4.x Dec 2, 2022
@sreichel sreichel deleted the workflow-default branch December 2, 2022 14:58
@github-actions
Copy link

github-actions bot commented Dec 2, 2022

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
7 runs  ±0  5 ✔️ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 8ec52e6. ± Comparison against base commit efcc5f0.

@fballiano fballiano mentioned this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants