Skip to content

Update for GitHub Actions #70

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
merged 5 commits into from
Dec 9, 2020
Merged

Update for GitHub Actions #70

merged 5 commits into from
Dec 9, 2020

Conversation

thomashoneyman
Copy link
Contributor

This PR updates canvas to use the same standard README format as the rest of -web, and migrates to use GitHub Actions for CI.

bower.json Outdated
@@ -17,7 +17,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/paf31/purescript-canvas.git"
"url": "https://github.com/paf31/purescript-canvas.git"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be updated to purescript-web1 rather than paf31?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, sorry. Looks like this package is here in the registry:

https://github.com/purescript/registry/blob/d00db678819f73fbeefbe34798ff48a69fd443b8/bower-packages.json#L269

...which seems to be purescript/ rather than purescript-web/. @f-f may know for sure, but I think this URL just needs to match the registry so we can publish new versions.

package.json Outdated
@@ -6,9 +6,9 @@
"test": "pulp test"
Copy link
Contributor

Choose a reason for hiding this comment

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

CI is failing because of this line. We are using npm run-script test --if-present. NPM finds that there is such a script (above) and executes it. However, there aren't any tests in this repo. I'm assuming we should drop this 'test' script here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, that works. Thanks!

There aren't any tests in this repo. If we want to add them later, this script should be added again.

- uses: actions/setup-node@v1
with:
node-version: "10"
Copy link
Contributor

@kl0tl kl0tl Dec 8, 2020

Choose a reason for hiding this comment

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

Is there a specific reason for this version and not "12" like in the core libraries?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The core libraries were updated before our discussion about the minimum supported node version (10), which will switch to 12 in March. We don’t use any features that are different between the versions so we could use either of these two; I opted to update libraries going forward to use v10 but to leave the libraries already on v12 as they are.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I thought the discussion was only for the purescript-node libraries. I’m relieved this is not something to change on the whole org then 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea me too 😅 we’ll just be sure to have those on 10, and in general we should try to use 10, and in the future we will have to update to 12. Unless there’s an easy way with setup-node to automatically target the last supported version.

@JordanMartinez
Copy link
Contributor

Can I get feedback on my comment here about the URL being different now?

@thomashoneyman
Copy link
Contributor Author

Sorry about that, @JordanMartinez. I've responded and made the relevant update.

@JordanMartinez JordanMartinez merged commit 90ce3df into master Dec 9, 2020
@JordanMartinez
Copy link
Contributor

Thanks!

@JordanMartinez JordanMartinez deleted the github-actions branch December 9, 2020 01:08
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

Successfully merging this pull request may close these issues.

3 participants