From e7ce1b273ff1c37d5957462a794ecddc914a85db Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Wed, 25 Nov 2020 02:18:39 -0500 Subject: [PATCH 1/3] Migrate to GitHub Actions for CI --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + .travis.yml | 24 ------------------------ README.md | 2 +- 4 files changed, 33 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 00000000..16586f90 --- /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" + psa: "0.8.0" + + - uses: actions/setup-node@v1 + with: + node-version: "12" + + - name: Install dependencies + run: | + npm install -g bower + npm install + bower install --production + - name: Build + run: npm run-script build + + - name: Test + run: | + bower install + npm run-script test --if-present diff --git a/.gitignore b/.gitignore index 709fd096..7bb9d6d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.* !/.gitignore +!/.github !/.eslintrc.json !/.travis.yml package-lock.json diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 116705f7..00000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +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 -script: - - bower install --production - - 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 37dd0adf..db64195f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # purescript-arrays [![Latest release](http://img.shields.io/github/release/purescript/purescript-arrays.svg)](https://github.com/purescript/purescript-arrays/releases) -[![Build status](https://travis-ci.org/purescript/purescript-arrays.svg?branch=master)](https://travis-ci.org/purescript/purescript-arrays) +[![Build Status](https://github.com/purescript/purescript-arrays/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-arrays/actions?query=workflow%3ACI+branch%3Amaster) Utility functions for the `Array` type - JavaScript's native arrays. From ca1099c22a99d7cb50089fd6e6400e2f07b55fea Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Wed, 25 Nov 2020 02:22:10 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db64195f..d15a71ab 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # purescript-arrays [![Latest release](http://img.shields.io/github/release/purescript/purescript-arrays.svg)](https://github.com/purescript/purescript-arrays/releases) -[![Build Status](https://github.com/purescript/purescript-arrays/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-arrays/actions?query=workflow%3ACI+branch%3Amaster) +[![Build status](https://github.com/purescript/purescript-arrays/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-arrays/actions?query=workflow%3ACI+branch%3Amaster) Utility functions for the `Array` type - JavaScript's native arrays. From f1a56af8e58ef222fde830815d0187504429f8ee Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Wed, 25 Nov 2020 02:22:47 -0500 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16586f90..2bb779cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,11 @@ jobs: npm install -g bower npm install bower install --production - - name: Build + + - name: Build source run: npm run-script build - - name: Test + - name: Run tests run: | bower install npm run-script test --if-present