-
Notifications
You must be signed in to change notification settings - Fork 126
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
Update workflows, merge repository kuzzle-containers #2502
Conversation
NODE_LTS_MAINTENANCE_VERSION: "16" | ||
NODE_LTS_ACTIVE_VERSION: "18" | ||
NODE_LTS_CURRENT_VERSION: "20" |
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.
Why not use a matrix for doing the same thing?
@@ -20,7 +20,7 @@ jobs: | |||
steps: | |||
- id: set-matrix | |||
run: | | |||
echo "::set-output name=matrix::{\"node-version\": [\"$NODE_LTS_MAINTENANCE_VERSION\", \"$NODE_LTS_ACTIVE_VERSION\"]}" | |||
echo "matrix={\"node-version\": [\"$NODE_LTS_MAINTENANCE_VERSION\", \"$NODE_LTS_ACTIVE_VERSION\"]}" >> $GITHUB_OUTPUT |
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.
Is it possible to set up the matrix of Nodejs versions normally (with an array of numbers) instead of constructing it like this? This seems rather "hacky".
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.
Well, I tried a bunch of thing, seems that this is the way to go if we don't want to repeat the matrix over and over for each jobs
|
||
WORKDIR /var/app |
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.
The working directory was already set above.
WORKDIR /var/app |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
We are going to squash this one 🥶 |
What does this PR do ?