From 7c133ddce7720f8eea021fd69aef0a45579f1f8c Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Fri, 4 Dec 2020 17:41:03 -0800 Subject: [PATCH 1/3] Migrate to GitHub Actions and update installation instructions. --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 2 +- .travis.yml | 22 ---------------------- README.md | 4 ++-- 4 files changed, 34 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e2972ba --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: push + +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 diff --git a/.gitignore b/.gitignore index b215c44..7ebd961 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /.* !/.gitignore -!/.travis.yml +!/.github/ /bower_components/ /node_modules/ /output/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d79859a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: node_js -dist: trusty -sudo: required -node_js: stable -env: - - PATH=$HOME/purescript:$PATH -install: - # - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest)) - - TAG=v0.14.0-rc3 - - curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz - - tar -xvf $HOME/purescript.tar.gz -C $HOME/ - - chmod a+x $HOME/purescript - - npm install -g bower - - npm install - - bower install -script: - - npm run -s build -after_success: -- >- - test $TRAVIS_TAG && - echo $GITHUB_TOKEN | pulp login && - echo y | pulp publish --no-push diff --git a/README.md b/README.md index 0df83cc..83f1135 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # purescript-profunctor [![Latest release](http://img.shields.io/github/release/purescript/purescript-profunctor.svg)](https://github.com/purescript/purescript-profunctor/releases) -[![Build Status](https://travis-ci.org/purescript/purescript-profunctor.svg?branch=master)](https://travis-ci.org/purescript/purescript-profunctor) +[![Build status](https://github.com/purescript/purescript-profunctor/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-profunctor/actions?query=workflow%3ACI+branch%3Amaster) Profunctor typeclass. ## Installation ``` -bower install purescript-profunctor +spago install profunctor ``` ## Documentation From c83ccb44c8fc2dac7338d60ec7561a1674587ec3 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Mon, 7 Dec 2020 20:55:07 -0800 Subject: [PATCH 2/3] Update badge and CI --- .github/workflows/ci.yml | 6 +++++- README.md | 1 + package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2972ba..55efa3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: push +on: + push: + branches: [master] + pull_request: + branches: [master] jobs: build: diff --git a/README.md b/README.md index 83f1135..aa4ebcd 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Latest release](http://img.shields.io/github/release/purescript/purescript-profunctor.svg)](https://github.com/purescript/purescript-profunctor/releases) [![Build status](https://github.com/purescript/purescript-profunctor/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-profunctor/actions?query=workflow%3ACI+branch%3Amaster) +[![Pursuit](https://pursuit.purescript.org/packages/purescript-profunctor/badge)](https://pursuit.purescript.org/packages/purescript-profunctor) Profunctor typeclass. diff --git a/package.json b/package.json index b8d0c47..79ea445 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,6 @@ "devDependencies": { "pulp": "^15.0.0", "purescript-psa": "^0.8.0", - "rimraf": "^2.6.2" + "rimraf": "^3.0.2" } } From e8f2cf9f89ff0c66a6613fdcbd22f0734a3492c6 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Mon, 7 Dec 2020 20:58:07 -0800 Subject: [PATCH 3/3] Censor user-defined warnings to accommodate MonadZero deprecation --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 79ea445..b81b437 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "scripts": { "clean": "rimraf output && rimraf .pulp-cache", - "build": "pulp build -- --censor-lib --strict" + "build": "pulp build -- --censor-lib --strict --censor-codes='UserDefinedWarning'" }, "devDependencies": { "pulp": "^15.0.0",