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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
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"
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.


- 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
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ bower_components/
package-lock.json

/.*
!/.github
!/.gitignore
!/.travis.yml

# OS generated files #
######################
ehthumbs.db
Thumbs.db
*.db
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# purescript-canvas

[![Latest release](http://img.shields.io/bower/v/purescript-canvas.svg)](https://github.com/purescript-contrib/purescript-canvas/releases)
[![Latest release](http://img.shields.io/github/release/purescript-web/purescript-canvas.svg)](https://github.com/purescript-web/purescript-canvas/releases)
[![Build status](https://github.com/purescript-web/purescript-canvas/workflows/CI/badge.svg?branch=master)](https://github.com/purescript-web/purescript-canvas/actions?query=workflow%3ACI+branch%3Amaster)
[![Pursuit](https://pursuit.purescript.org/packages/purescript-canvas/badge)](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).
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/paf31/purescript-canvas.git"
"url": "https://github.com/purescript/purescript-canvas.git"
},
"dependencies": {
"purescript-effect": "^2.0.0",
Expand Down
Loading