Skip to content

Commit 90ce3df

Browse files
thomashoneymanJordanMartinezkl0tl
authored
Update for GitHub Actions (#70)
* Update for GitHub Actions * Remove test script There aren't any tests in this repo. If we want to add them later, this script should be added again. * Run CI on push / pull_request to master * Fix build status badge * Update bower.json Co-authored-by: JordanMartinez <jordanalex.martinez@gmail.com> Co-authored-by: Cyril Sobierajewicz <sobierajewicz.cyril@gmail.com>
1 parent 6a17b38 commit 90ce3df

File tree

7 files changed

+52
-895
lines changed

7 files changed

+52
-895
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: purescript-contrib/setup-purescript@main
16+
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: "10"
20+
21+
- name: Install dependencies
22+
run: |
23+
npm install -g bower
24+
npm install
25+
bower install --production
26+
27+
- name: Build source
28+
run: npm run-script build
29+
30+
- name: Run tests
31+
run: |
32+
bower install
33+
npm run-script test --if-present

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ bower_components/
44
package-lock.json
55

66
/.*
7+
!/.github
78
!/.gitignore
8-
!/.travis.yml
99

10-
# OS generated files #
11-
######################
12-
ehthumbs.db
13-
Thumbs.db
10+
*.db

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# purescript-canvas
22

3-
[![Latest release](http://img.shields.io/bower/v/purescript-canvas.svg)](https://github.com/purescript-contrib/purescript-canvas/releases)
3+
[![Latest release](http://img.shields.io/github/release/purescript-web/purescript-canvas.svg)](https://github.com/purescript-web/purescript-canvas/releases)
4+
[![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)
5+
[![Pursuit](https://pursuit.purescript.org/packages/purescript-canvas/badge)](https://pursuit.purescript.org/packages/purescript-canvas)
46

5-
Canvas bindings for PureScript
7+
Canvas bindings for PureScript.
68

7-
- [Module Documentation](generated-docs/)
9+
## Installation
810

9-
## Installing
11+
```
12+
spago install canvas
13+
```
1014

11-
bower i purescript-canvas
15+
## Documentation
16+
17+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-canvas).

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"repository": {
1919
"type": "git",
20-
"url": "git://github.com/paf31/purescript-canvas.git"
20+
"url": "https://github.com/purescript/purescript-canvas.git"
2121
},
2222
"dependencies": {
2323
"purescript-effect": "^2.0.0",

0 commit comments

Comments
 (0)