-
Notifications
You must be signed in to change notification settings - Fork 33
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: purescript-contrib/setup-purescript@main | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install -g bower | ||
npm install | ||
bower install --production | ||
|
||
- name: Build source | ||
run: npm run-script build | ||
|
||
- name: Run tests | ||
run: | | ||
bower install | ||
npm run-script test --if-present |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# purescript-canvas | ||
|
||
[](https://github.com/purescript-contrib/purescript-canvas/releases) | ||
[](https://github.com/purescript-web/purescript-canvas/releases) | ||
[](https://github.com/purescript-web/purescript-canvas/actions?query=workflow%3ACI+branch%3Amaster) | ||
[](https://pursuit.purescript.org/packages/purescript-canvas) | ||
|
||
Canvas bindings for PureScript | ||
Canvas bindings for PureScript. | ||
|
||
- [Module Documentation](generated-docs/) | ||
## Installation | ||
|
||
## Installing | ||
``` | ||
spago install canvas | ||
``` | ||
|
||
bower i purescript-canvas | ||
## Documentation | ||
|
||
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-canvas). |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/paf31/purescript-canvas.git" | ||
"url": "https://github.com/paf31/purescript-canvas.git" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be updated to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ping @thomashoneyman There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, sorry. Looks like this package is here in the registry: ...which seems to be |
||
}, | ||
"dependencies": { | ||
"purescript-effect": "^2.0.0", | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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 specific reason for this version and not
"12"
like in the core libraries?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.
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.
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.
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 😅
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.
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.