From c735467a3616b04c9ac5a01acb0a6a4d920db221 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Thu, 28 Apr 2022 09:47:44 -0400 Subject: [PATCH] Update for PureScript 0.15 (#14) * Update for PureScript 0.15 * Update bower.json --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .gitignore | 2 +- .travis.yml | 16 ---------------- bower.json | 8 ++++---- package.json | 4 ++-- 5 files changed, 41 insertions(+), 23 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..17809e8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: purescript-contrib/setup-purescript@main + with: + purescript: "unstable" + + - uses: actions/setup-node@v2 + with: + node-version: "14" + + - 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 307f9c0..f97581b 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 2bc3cdf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js -dist: trusty -sudo: required -node_js: stable -install: - - npm install -g bower - - npm install -script: - - bower install --production - - npm run -s build - - bower install -after_success: -- >- - test $TRAVIS_TAG && - echo $GITHUB_TOKEN | pulp login && - echo y | pulp publish --no-push diff --git a/bower.json b/bower.json index 4261278..e3ff576 100644 --- a/bower.json +++ b/bower.json @@ -7,9 +7,9 @@ }, "ignore": ["**/.*", "node_modules", "bower_components", "output"], "dependencies": { - "purescript-prelude": "^5.0.0", - "purescript-halogen-vdom": "^7.0.0", - "purescript-ordered-collections": "^2.0.0", - "purescript-foreign": "^6.0.0" + "purescript-prelude": "^6.0.0", + "purescript-halogen-vdom": "^8.0.0", + "purescript-ordered-collections": "^3.0.0", + "purescript-foreign": "^7.0.0" } } diff --git a/package.json b/package.json index 69a39dd..9c05089 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "build": "pulp build -- --censor-lib --strict" }, "devDependencies": { - "pulp": "^15.0.0", + "pulp": "^16.0.0-0", "purescript-psa": "^0.8.2", - "purescript": "^0.14.1", + "purescript": "^0.15.0-0", "rimraf": "^3.0.2" }, "dependencies": {