Skip to content

Commit b3ac323

Browse files
Migrate to GitHub Actions and update installation instructions. (#5)
1 parent 00f4ab5 commit b3ac323

File tree

4 files changed

+33
-24
lines changed

4 files changed

+33
-24
lines changed

.github/workflows/ci.yml

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.*
22
!/.gitignore
33
!/.eslintrc.json
4-
!/.travis.yml
4+
!/.github/
55
package-lock.json
66
/bower_components/
77
/node_modules/

.travis.yml

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

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# purescript-web-socket
22

33
[![Latest release](http://img.shields.io/github/release/purescript-web/purescript-web-socket.svg)](https://github.com/purescript-web/purescript-web-socket/releases)
4-
[![Build status](https://travis-ci.org/purescript-web/purescript-web-socket.svg?branch=master)](https://travis-ci.org/purescript-web/purescript-web-socket)
4+
[![Build status](https://github.com/purescript/purescript-web-socket/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-web-socket/actions?query=workflow%3ACI+branch%3Amaster)
5+
[![Pursuit](https://pursuit.purescript.org/packages/purescript-web-socket/badge)](https://pursuit.purescript.org/packages/purescript-web-socket)
56

67
Type definitions and low level interface implementations for the [W3C WebSocket API](https://www.w3.org/TR/websockets/).
78

89
## Installation
910

1011
```
11-
bower install purescript-web-socket
12+
spago install web-socket
1213
```
1314

1415
## Documentation

0 commit comments

Comments
 (0)