Skip to content

Commit 7232230

Browse files
Migrate to GitHub Actions (#37)
* Migrate to GitHub Actions and update installation instructions. * Run CI on push / pull_request to master * Remove unused eslint dev dependency * Update README.md
1 parent 8eeb3d5 commit 7232230

File tree

6 files changed

+42
-61
lines changed

6 files changed

+42
-61
lines changed

.eslintrc.json

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

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
with:
17+
purescript: "0.14.0-rc3"
18+
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: "12"
22+
23+
- name: Install dependencies
24+
run: |
25+
npm install -g bower
26+
npm install
27+
bower install --production
28+
29+
- name: Build source
30+
run: npm run-script build
31+
32+
- name: Run tests
33+
run: |
34+
bower install
35+
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 & 24 deletions
This file was deleted.

README.md

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

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

67
Purely-functional map and set data structures.
78

8-
*If you are looking to work with "StrMap"/JavaScript Objects, see <https://github.com/purescript/purescript-foreign-object>*
9+
_If you are looking to work with JavaScript Objects, see [`purescript-foreign-object`](https://github.com/purescript/purescript-foreign-object)._
910

1011
## Installation
1112

1213
```
13-
bower install purescript-ordered-collections
14-
# or
15-
psc-package install ordered-collections
14+
spago install ordered-collections
1615
```
1716

1817
## Documentation

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "eslint src && pulp build -- --censor-lib --strict",
5+
"build": "pulp build -- --censor-lib --strict",
66
"test": "pulp test",
77
"bench:build": "purs compile \"bench/**/*.purs\" \"src/**/*.purs\" \"bower_components/*/src/**/*.purs\"",
88
"bench:run": "node -e \"require('./output/Bench.Main/index.js').main()\"",
99
"bench": "npm run bench:build && npm run bench:run"
1010
},
1111
"devDependencies": {
12-
"eslint": "^4.19.1",
1312
"pulp": "^15.0.0",
1413
"purescript-psa": "^0.8.0",
15-
"rimraf": "^2.6.2"
14+
"rimraf": "^3.0.2"
1615
}
1716
}

0 commit comments

Comments
 (0)