Skip to content
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

Add Node.js setup support #254

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Add Node.js setup support #254

merged 4 commits into from
Dec 3, 2024

Conversation

abhikdps
Copy link
Contributor

@abhikdps abhikdps commented Dec 2, 2024

No description provided.

if: ${{ inputs.default_node != '' }}
uses: actions/setup-node@v3
with:
node-version-file: ${{ inputs.default_node }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use the exact same name 'node-version-file' as argument, would make it easier to switch and expand ins. the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also modify https://github.com/ansible/team-devtools/blob/main/.github/workflows/test.yml#L14 to ensure we have at least one case where we use default value and one where we pass an argument. Created a .tool-versions file in this repo, just for testing purposes and for enabling the testing of this argument.

Copy link
Contributor Author

@abhikdps abhikdps Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ssbarnea I have made the suggested changes..

@ssbarnea ssbarnea merged commit bf898c6 into ansible:main Dec 3, 2024
15 checks passed
@abhikdps abhikdps deleted the chore/tox-node branch December 3, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants