diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9cb89fa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + - push + - pull_request + +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: "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 79f2955..4fa951e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ npm-debug.log /.* !/.gitignore -!/.travis.yml +!/.github !/.eslintrc.json /bower_components/ /node_modules/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7f150a3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js -dist: trusty -sudo: required -node_js: stable -install: - - npm install -g bower - - npm install - - bower install --production -script: - - npm run -s build - - bower install - - npm -s test -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 fbebdb4..7c7d22c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # purescript-clipboard [![Latest release](http://img.shields.io/github/release/slamdata/purescript-clipboard.svg)](https://github.com/slamdata/purescript-clipboard/releases) -[![Build status](https://travis-ci.org/slamdata/purescript-clipboard.svg?branch=master)](https://travis-ci.org/slamdata/purescript-clipboard) +![Build Status](https://github.com/slamdata/purescript-clipboard/actions/workflows/ci.yml/badge.svg) Basic PureScript bindings for the [clipboard.js](https://github.com/zenorocha/clipboard.js/) library. diff --git a/bower.json b/bower.json index a162958..54508df 100644 --- a/bower.json +++ b/bower.json @@ -6,7 +6,7 @@ ], "repository": { "type": "git", - "url": "git://github.com/slamdata/purescript-clipboard.git" + "url": "https://github.com/slamdata/purescript-clipboard.git" }, "ignore": [ "**/.*", @@ -18,12 +18,12 @@ "package.json" ], "dependencies": { - "purescript-prelude": "^4.1.1", - "purescript-web-dom": "^3.0.0", - "purescript-css": "^4.0.0" + "purescript-prelude": "^5.0.0", + "purescript-web-dom": "^5.0.0", + "purescript-css": "^5.0.1" }, "devDependencies": { - "purescript-web-html": "^2.2.1", - "purescript-web-events": "^2.0.1" + "purescript-web-html": "^3.0.1", + "purescript-web-events": "^3.0.0" } } diff --git a/package.json b/package.json index 5b20a97..4b6c9ba 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,11 @@ "build-example": "pulp browserify -I example/src --to example/example.js" }, "dependencies": { - "clipboard": "^2.0.4", - "eslint": "^5.16.0", - "pulp": "^13.0.0", - "purescript": "^0.13.0", - "purescript-psa": "^0.7.3", - "rimraf": "^2.6.3" + "clipboard": "^2.0.8", + "eslint": "^7.25.0", + "pulp": "^15.0.0", + "purescript": "^0.14.1", + "purescript-psa": "^0.8.2", + "rimraf": "^3.0.2" } }