From 8c5fff48dc2ab62b6c7c97dee718fd7457af649c Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sun, 6 Dec 2020 12:46:36 -0800 Subject: [PATCH 1/2] Migrate to GitHub Actions and update installation instructions. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 2 +- .travis.yml | 21 --------------------- README.md | 4 ++-- 4 files changed, 32 insertions(+), 24 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..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 709fd09..7224331 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /.* !/.gitignore !/.eslintrc.json -!/.travis.yml +!/.github/ package-lock.json /bower_components/ /node_modules/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 24c0cb3..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=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest)) - - 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 -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 d07070b..6c2ee70 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # purescript-web-html [![Latest release](http://img.shields.io/github/release/purescript-web/purescript-web-html.svg)](https://github.com/purescript-web/purescript-web-html/releases) -[![Build status](https://travis-ci.org/purescript-web/purescript-web-html.svg?branch=master)](https://travis-ci.org/purescript-web/purescript-web-html) +[![Build status](https://github.com/purescript/purescript-web-html/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-web-html/actions?query=workflow%3ACI+branch%3Amaster) Type definitions and low level interface implementations for the [WHATWG HTML Standard](https://html.spec.whatwg.org). ## Installation ``` -bower install purescript-web-html +spago install web-html ``` ## Documentation From 681227c4c2ed4f28e084be6ec2cbabb5e2a5ba99 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sun, 6 Dec 2020 12:53:09 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6c2ee70..7c9c8fc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Latest release](http://img.shields.io/github/release/purescript-web/purescript-web-html.svg)](https://github.com/purescript-web/purescript-web-html/releases) [![Build status](https://github.com/purescript/purescript-web-html/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-web-html/actions?query=workflow%3ACI+branch%3Amaster) +[![Pursuit](https://pursuit.purescript.org/packages/purescript-web-html/badge)](https://pursuit.purescript.org/packages/purescript-web-html) Type definitions and low level interface implementations for the [WHATWG HTML Standard](https://html.spec.whatwg.org).