Comments (9)
This was originally addressed by #48 but is now reverted by 6f754f3 and 4885780
I don't really understand why there are 3 different variables for $MAGENTO_PROJECT_NAME ($PROJECT_NAME, $INPUT_PROJECT_NAME)
INPUT_PROJECT_NAME="magento/project-enterprise-edition" && MAGENTO_PROJECT_NAME=""
test -z "${MAGENTO_PROJECT_NAME}" || MAGENTO_PROJECT_NAME=$INPUT_PROJECT_NAME
test -z "$MAGENTO_PROJECT_NAME" && MAGENTO_PROJECT_NAME="magento/project-community-edition"
echo $MAGENTO_PROJECT_NAME
from github-actions-m2.
Yes and no. By using env
it works for me. By using with
it does not work for me. Which YAML are you using?
from github-actions-m2.
steps:
- uses: actions/checkout@v2
- name: M2 Integration Tests with Magento 2 (Php7.4)
uses: extdn/github-actions-m2/magento-integration-tests/7.4
with:
module_name: MyPackage
composer_name: namespace/package
ce_version: '2.4.3'
project_name: magento/project-enterprise-edition
env:
REPOSITORY_URL: https://repo.magento.com/
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
from github-actions-m2.
Ok, in my own trials there is also an env
with name PROJECT_NAME
set. But the variable structure is indeed bad, to say the least. Let me get into a fix.
from github-actions-m2.
To comment upon the confusion: The project was once kickstarted by Kristof who created a MAGENTO_PROJECT_NAME
variable in the entrypoint script, but a PROJECT_NAME
variable in the action input. I then added a INPUT_PROJECT_NAME
variable, so that the input could be either given through with
or through env
in your own YAML. This is where the current bug was introduced, where both with
and env
are suddenly required (your mentions of my commits), which is obviously wrong.
However, I would like to then refactor all, so that there is only a single variable PROJECT_NAME
which could be either set using with
or using env
:
env:
PROJECT_NAME: "magento/project-enterprise-edition"
with:
project_name: magento/project-enterprise-edition
This only means that the environment variable PROJECT_NAME
and the input variable INPUT_PROJECT_NAME
would need to be supported in the entrypoint script.
from github-actions-m2.
Like this: 6ad270b Let me know if this fixes things for you.
from github-actions-m2.
I can confirm that using PROJECT_NAME works with EE version
from github-actions-m2.
I'm going to close this issue, because I've gotten various reports now that this was solved correctly (even though I suspect @damienwebdev is no longer using this specific solution ;))
from github-actions-m2.
@jissereitsma yes, confirming this works, sorry for never closing the issue.
from github-actions-m2.
Related Issues (20)
- Cannot use PHP 7.4 action for coding standards HOT 5
- Add problem matcher support for PHPMD HOT 3
- Magento-phpstan Action: Why do we need a composer package for it? Composer 2.0 is not supported! HOT 4
- [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.