-
Notifications
You must be signed in to change notification settings - Fork 116
ci: refactor k6 action to add new env vars #1287
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
Conversation
7edc574 to
d50202e
Compare
d50202e to
defa606
Compare
defa606 to
9f00919
Compare
| echo ::set-output name=name::$ENVNAME | ||
| echo ::set-output name=code::$ENVCODE | ||
| echo ::set-output name=middleware-url::$MIDDLEWARE_URL | ||
| cat .github/workflows/public_env_info/$ENVINFO_FILE >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment-related env vars are now kept in separate files. Had I not done that, env info would be duplicated in the k6 action and in our regular deploy to Farmer action. It'd be more difficult to maintain
9f00919 to
c77fddb
Compare
|
@bartoszherba this PR is targeting the main branch because workflows that are meant to be ran manually take source code from the repo's designated primary branch (main in our case) |
|
Kudos, SonarCloud Quality Gate passed! |
update k6 action to select environments instead of urls, because with K6 we'll probably need 3 separate urls (middleware, frontend app and graphql endpoint) which would be painful to type in manually now you just input the env name and it selects the 3 urls on its own M2-1033 ci: update k6 script with new variables ci: update envs with new naming convention
c77fddb to
2061aae
Compare








Change K6 action so that it works by picking the environment rather than specifying the url. Our upcoming implementation of load tests will have three separate urls (magento instance, middleware url, frontend url). Specifying each url by hand/adding it to the url dropdown would be annoying