Comments (9)
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?
from github-actions-m2.
Thanks @sprankhub I will try and let you know.
from github-actions-m2.
Hi @sprankhub thank you for the suggestion, works like a charm!
from github-actions-m2.
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... 🤔
from github-actions-m2.
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
Error: file_put_contents(/m2/app/etc/vendor_path.php): Failed to open stream: No such file or directory
Use the `composer fund` command to find out more!
In PluginManager.php(278) : eval()'d code line 323:
file_put_contents(/m2/app/etc/vendor_path.php): Failed to open stream: No s
uch file or directory
from github-actions-m2.
Then this sounds like a bug to me 🙈
from github-actions-m2.
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 magento2-base
files that are copied from vendor/
to the application root, including the file app/etc/vendor_path.php
(which is mentioned in this issue). For some reason, the end-result of the Docker image however is a filled vendor/
folder, but no additional files.
I've added a quick workaround https://github.com/extdn/github-actions-m2/blob/master/magento-phpstan/entrypoint.sh#L20 to remove the vendor/
folder and re-add it again. After this, everything works just fine for me.
Does this fix things for you as well?
from github-actions-m2.
It's an ugly one 😂 But it works: https://github.com/customgento/module-default-store-code-remover-m2/actions/runs/9380223585/job/26944378354
from github-actions-m2.
Thanks for looking into this! Do you have any idea for a nicer fix?
from github-actions-m2.
Related Issues (20)
- [Question] Run Magento Coding Standard check on changed files HOT 2
- ERROR: Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions" does not exist HOT 3
- [BUG] Magento 2 Tests Integration tests fail unless the key USE_OVERRIDE_CONFIG is set to enabled in `phpunit.xml` HOT 3
- Feat: Support PHP 8.1 Actions HOT 6
- Newer PHPUnit versions don't allow for non-existing directories in testsuites HOT 5
- Add PHP 8.1 support for PHPStan HOT 3
- Missing Env Variables HOT 5
- [BUG] Integration tests fails as a result of recent `composer` breaking changes HOT 2
- Monolog 2.7 causes breaking changes that make Integration Tests fail HOT 6
- Unable to parse fixtures error on Magento 2.4.5 HOT 3
- How can I run M2 PHPStan on specific branch not on composer package
- Add support for new Variables
- Github.com contains invalid characters caused by old composer docker images
- PHPStan. Add support to change repository url
- Error Running Copy/Paste Detector
- PHPStan "module_source" variable seemingly not used HOT 2
- PHP 8.2 Support HOT 1
- Integration tests failing for Magento 2.3 HOT 4
- Update extdn/magento-coding-standard-action Docker Images Regularly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-actions-m2.