-
Notifications
You must be signed in to change notification settings - Fork 46
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
Error: file_put_contents(/m2/app/etc/vendor_path.php): Failed to open stream: No such file or directory #115
Comments
This configuration works for us: https://github.com/customgento/CustomGento_Invoice-m2/blob/3959c742e9147d7dc7afc4a05ade4dc4124d1619/.github/workflows/phpstan.yml Could you try with a similar one? |
Thanks @sprankhub I will try and let you know. |
Hi @sprankhub thank you for the suggestion, works like a charm! |
Okay, interesting :D So internally, this uses https://github.com/customgento/m2-github-actions/blob/main/.github/workflows/phpstan.yml. The only real difference I see is that it uses PHP 8.2 insteaf of PHP 8.1... 🤔 |
Interestingly, it worked fine with the https://github.com/customgento/m2-github-actions/blob/main/.github/workflows/phpstan.yml configuration, but when I tried to add a composer_name it fails with the same error: name: ExtDN M2 PHPStan
on: [push, pull_request]
jobs:
phpstan:
name: M2 PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extdn/github-actions-m2/magento-phpstan/8.2@master
with:
composer_name: pronko/workflow-tests-magento-module
|
Then this sounds like a bug to me 🙈 |
I bumped into this issue myself as well. This is what I found: In the PHPStan Docker image, the Integration Testing Docker image is included. Next, specifically for the PHPStan Docker image, composer is used to install Magento https://github.com/extdn/github-actions-m2/blob/master/magento-phpstan/Dockerfile%3A8.3#L4 This should also include all of the I've added a quick workaround https://github.com/extdn/github-actions-m2/blob/master/magento-phpstan/entrypoint.sh#L20 to remove the Does this fix things for you as well? |
It's an ugly one 😂 But it works: https://github.com/customgento/module-default-store-code-remover-m2/actions/runs/9380223585/job/26944378354 |
Thanks for looking into this! Do you have any idea for a nicer fix? |
The ExtDN M2 PHPStan workflow returns the below error:
Configuration used:
Am I missing something in the yaml file or there is an issue with the workflow?
The text was updated successfully, but these errors were encountered: