Skip to content

Fix GitHub Actions Workflow #1224

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

Merged

Conversation

pjbollinger
Copy link
Contributor

@pjbollinger pjbollinger commented Mar 8, 2021

Testing this locally with https://github.com/nektos/act, I was able to reproduce the issue and fix it with this change.
Now that the workflow has been committed to the repository, hopefully it will be easier to test and check.

Apologies for the additional PR, I should have looked to see how to test it locally before committing. 😅

@@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: npm install
- name: Compile TypeScript
run: tsc
run: npx tsc
Copy link
Member

@raucao raucao Mar 8, 2021

Choose a reason for hiding this comment

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

The npm test script in package.json actually includes compiling TypeScript already, so I think this step is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree 👍 I wasn't sure exactly why this separate tsc was called out in the first place, other than a sanity check, but I'll go ahead and remove this step.

Copy link
Member

@raucao raucao Mar 8, 2021

Choose a reason for hiding this comment

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

Yeah, just saw that it was already unnecessarily called on Travis. Just an oversight when we were working on the whole TS port I guess.

Testing this locally with https://github.com/nektos/act, I was able to reproduce the issue and fix it with this change.
Now that the workflow has been commited to the repository, hopefully it will be easier to test and check.

Also, remove redundant `tsc` in CI pipeline since `tsc` is called inside `npm test`.
@pjbollinger pjbollinger force-pushed the bugfix/fix-github-workflow branch from dcfa54e to d3c54dd Compare March 8, 2021 11:35
@raucao
Copy link
Member

raucao commented Mar 8, 2021

🎉

@raucao raucao merged commit 0d99d77 into remotestorage:master Mar 8, 2021
@pjbollinger pjbollinger deleted the bugfix/fix-github-workflow branch March 8, 2021 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants