diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..49aff92 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: push + +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 diff --git a/.gitignore b/.gitignore index 0e25010..3d63989 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /.* !/.gitignore !/.eslintrc.json -!/.travis.yml +!/.github/ package-lock.json yarn.lock /bower_components/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f080bf7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: node_js -dist: trusty -sudo: required -node_js: stable -env: - - PATH=$HOME/purescript:$PATH -install: - - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///pi') - - wget -O $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 -script: - - bower install - - 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 93a9a78..86fcbfa 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,15 @@ # purescript-web-cssom [![Latest release](http://img.shields.io/github/release/purescript-web/purescript-web-cssom.svg)](https://github.com/purescript-web/purescript-web-cssom/releases) -[![Build status](https://travis-ci.org/purescript-web/purescript-web-cssom.svg?branch=master)](https://travis-ci.org/purescript-web/purescript-web-cssom) +[![Build status](https://github.com/purescript/purescript-web-cssom/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-web-cssom/actions?query=workflow%3ACI+branch%3Amaster) +[![Pursuit](https://pursuit.purescript.org/packages/purescript-web-cssom/badge)](https://pursuit.purescript.org/packages/purescript-web-cssom) Type definitions and low level interface implementations for the [CSS Object Model](https://www.w3.org/TR/cssom/). ## Installation ``` -bower install purescript-web-cssom +spago install web-cssom ``` ## Documentation diff --git a/package.json b/package.json index 7d759c8..1c67b54 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,9 @@ "build": "eslint src && pulp build -- --censor-lib --strict" }, "devDependencies": { - "eslint": "^5.2.0", - "pulp": "^12.3.0", - "purescript-psa": "^0.7.2", - "rimraf": "^2.6.2" - }, - "dependencies": { - "purescript": "^0.12.0" + "eslint": "^7.15.0", + "pulp": "^15.0.0", + "purescript-psa": "^0.8.0", + "rimraf": "^3.0.2" } }