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

Support new with params #1

Open
jcblw opened this issue Aug 12, 2019 · 5 comments
Open

Support new with params #1

jcblw opened this issue Aug 12, 2019 · 5 comments

Comments

@jcblw
Copy link
Member

jcblw commented Aug 12, 2019

This will help with versions of chrome and nodejs.

@jcblw
Copy link
Member Author

jcblw commented Oct 25, 2019

Here is an example of what I think this syntax should look like. This allows the downloading of a specific version of node and chrome.

  - name: Test code
     uses: mujo-code/puppeteer-headful@v2
     with:
        node-version: '12.x'
        chrome-version: 'latest' 
     run: npm run test

@jcblw
Copy link
Member Author

jcblw commented Oct 8, 2021

@stefanbuck so the only way I can see this working would be the workaround mentioned in the feature request here.

https://github.community/t/feature-request-build-args-support-in-docker-container-actions/16846

Feel like this is going to take a little reworking of how this action works and seems like it would slow down build times since we would be building a docker container in a docker container. I can play around with it this weekend and see how well this works.

@jcblw
Copy link
Member Author

jcblw commented Oct 8, 2021

Actually thinking about this, we can probably just tag the new versions. I think that is what I actually did in the past to make it align with the version of NodeJS in the container.

Screen Shot 2021-10-08 at 9 40 05 AM

Actually might want to do this request with only Chrome versions and then we can tell people if they want a Nodejs version they need to find the nearest tag.

@stefanbuck
Copy link
Collaborator

Actually might want to do this request with only Chrome versions and then we can tell people if they want a Nodejs version they need to find the nearest tag.

Mhhh, so a new version of this Action whenever a new Chrome version comes out, is this what you are saying? Does this scale / work in the long run? Another option is to use node:latest but this could break anytime. I'm not really sure what’s best here to be honest.

@jcblw
Copy link
Member Author

jcblw commented Oct 9, 2021

Yeah, a new tag for each NodeJS version. We run into a similar issue trying to add params to the Chrome version even though I could see some benefits to being able to test on beta or canary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants