-
Notifications
You must be signed in to change notification settings - Fork 3
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
Move scratch-asset-types to Github Actions #16
Conversation
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.
Let me know what you think... I can imagine counter-arguments to both my suggestions :)
.github/workflows/build.yml
Outdated
npm --production=false install | ||
npm --production=false update | ||
npm --production=false prune |
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.
Since this has a package-lock.json
now, I think this should switch to npm ci
:
npm --production=false install | |
npm --production=false update | |
npm --production=false prune | |
npm --production=false ci |
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.
good call!
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.
i moved everything to dependencies
rather than devDependencies
since there are only 5. Eslint was failing because it could not be found. IIRC npm ci does not include devDependncies with node_env=production.
package.json
Outdated
}, | ||
"scripts": { | ||
"test": "make test" | ||
"test": "tap ./test/unit/*.js", |
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.
Hmm... it's kind of awkward to have this out of sync with what the Makefile
does. It doesn't currently matter because ./test/functional/
and ./test/integration/
don't exist, but it seems like it's setting the stage for a mistake in the future. I'd suggest either migrating everything out of Makefile
and deleting it, or changing the test
script back to make test
.
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.
I agree its a little awkward. I'll have to go back and test this - I don't think Make was working and that's why I switched it. (sorry its been a while 😂 )
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.
I fixed this. Went back to Make. :)
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.
Looks good to me!
Resolves
https://scratchfoundation.atlassian.net/browse/ENG-50
Proposed Changes