Skip to content

Commit

Permalink
Migrate to GitHub Actions (#37)
Browse files Browse the repository at this point in the history
* Migrate to GitHub Actions and update installation instructions.

* Run CI on push / pull_request to master

* Remove unused eslint dev dependency

* Update README.md
  • Loading branch information
thomashoneyman committed Dec 8, 2020
1 parent 8eeb3d5 commit 7232230
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 61 deletions.
28 changes: 0 additions & 28 deletions .eslintrc.json

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
with:
purescript: "0.14.0-rc3"

- uses: actions/setup-node@v1
with:
node-version: "12"

- 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.*
!/.gitignore
!/.eslintrc.json
!/.travis.yml
!/.github/
package-lock.json
/bower_components/
/node_modules/
Expand Down
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# purescript-ordered-collections

[![Latest release](http://img.shields.io/github/release/purescript/purescript-ordered-collections.svg)](https://github.com/purescript/purescript-ordered-collections/releases)
[![Build status](https://travis-ci.org/purescript/purescript-ordered-collections.svg?branch=master)](https://travis-ci.org/purescript/purescript-ordered-collections)
[![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)
[![Pursuit](https://pursuit.purescript.org/packages/purescript-ordered-collections/badge)](https://pursuit.purescript.org/packages/purescript-ordered-collections)

Purely-functional map and set data structures.

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

## Installation

```
bower install purescript-ordered-collections
# or
psc-package install ordered-collections
spago install ordered-collections
```

## Documentation
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "eslint src && pulp build -- --censor-lib --strict",
"build": "pulp build -- --censor-lib --strict",
"test": "pulp test",
"bench:build": "purs compile \"bench/**/*.purs\" \"src/**/*.purs\" \"bower_components/*/src/**/*.purs\"",
"bench:run": "node -e \"require('./output/Bench.Main/index.js').main()\"",
"bench": "npm run bench:build && npm run bench:run"
},
"devDependencies": {
"eslint": "^4.19.1",
"pulp": "^15.0.0",
"purescript-psa": "^0.8.0",
"rimraf": "^2.6.2"
"rimraf": "^3.0.2"
}
}

0 comments on commit 7232230

Please sign in to comment.