-
Notifications
You must be signed in to change notification settings - Fork 4
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 to Github Actions #90
Conversation
.github/workflows/tests.yml
Outdated
- run: npm install --silent --unsafe-perm | ||
- run: npm install --silent --unsafe-perm --only=dev |
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.
- run: npm install --silent --unsafe-perm | |
- run: npm install --silent --unsafe-perm --only=dev | |
- run: npm install --silent --unsafe-perm |
.github/workflows/tests.yml
Outdated
- run: npm install --silent --unsafe-perm | ||
- run: npm install --silent --unsafe-perm --only=dev |
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.
- run: npm install --silent --unsafe-perm | |
- run: npm install --silent --unsafe-perm --only=dev | |
- run: npm install --silent --unsafe-perm |
using: "composite" | ||
steps: | ||
- run: npm install --silent --unsafe-perm | ||
shell: bash |
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 there a way to not specify bash
all the time?
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.
Not that i now of, i'll keep looking and update if i found something
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.
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.
Thats about the workflow, not a composite action.yml file
The docs about it is https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/creating-a-composite-run-steps-action and i'll have a deeper look into it, but in their example all of them have duplicate shell:bash
- run: npm pack | ||
shell: bash | ||
- run: tar xf kourou-$(node -e 'console.log(require("./package.json").version)').tgz | ||
shell: bash |
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 just run typescript compile instead of packing and unpacking?
- run: npm pack | |
shell: bash | |
- run: tar xf kourou-$(node -e 'console.log(require("./package.json").version)').tgz | |
shell: bash | |
- run: tsc | |
shell: bash |
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.
Because we want to test the generated NPM package and not the source code
Co-authored-by: Nicolas Juelle <n.juelle@gmail.com>
Co-authored-by: Nicolas Juelle <n.juelle@gmail.com>
Co-authored-by: Nicolas Juelle <n.juelle@gmail.com>
844854e
to
e7ff91a
Compare
e7ff91a
to
0442d28
Compare
@rolljee being very busy, I took over his job and added:
|
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.
Having worked on this branch, my review doesn't count anymore. I approve only to not be blocked by Github checks
This PR move away from travis ci in favour of Github actions