Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Migrate to GitHub Actions #25

Merged
merged 3 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
39 changes: 0 additions & 39 deletions .eslintrc

This file was deleted.

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"

- 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,6 +1,6 @@
/.*
!/.gitignore
!/.travis.yml
!/.github/
/bower_components/
/node_modules/
/tmp/
Expand Down
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# purescript-node-fs-aff

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

[Node.FS][Node.FS] Wrappers for [purescript-aff][aff]
[Node.FS][node.fs] wrappers for [purescript-aff][aff].

The `Aff` monad lets you write async code with ease, and `node-fs-aff`
lets you easily access the filesystem within `Aff`.
The `Aff` monad lets you write async code with ease, and `node-fs-aff` lets you easily access the filesystem within `Aff`.

## Installation

```
spago install node-fs-aff
```

## Example

Consider asynchronously listing only non-hidden directories:

``` purescript
```purescript
main = launchAff do
files <- FS.readdir "."
files' <- flip filterM files \file -> do
Expand All @@ -29,6 +35,5 @@ That was easy. Run `npm run example` to see it work.

Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-node-fs-aff).


[Node.FS]: http://github.com/purescript-node/purescript-node-fs
[node.fs]: http://github.com/purescript-node/purescript-node-fs
[aff]: https://github.com/slamdata/purescript-aff
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"test": "pulp test"
},
"devDependencies": {
"pulp": "^12.2.0",
"purescript-psa": "^0.6.0",
"rimraf": "^2.6.2"
"pulp": "^15.0.0",
"purescript-psa": "^0.8.0",
"rimraf": "^3.0.2"
}
}