Skip to content

Commit

Permalink
Merge pull request #7 from garyb/ps-0.15
Browse files Browse the repository at this point in the history
Update for PureScript 0.15, add CI action
  • Loading branch information
nwolverson authored May 16, 2022
2 parents 2bb8a6e + 1dc9ed7 commit c65f259
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 25 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"output"
],
"dependencies": {
"purescript-web-html": "^3.0.1",
"purescript-aff": "^6.0.0",
"purescript-arraybuffer-types": "^3.0.0",
"purescript-web-file": "^3.0.0"
"purescript-web-html": "^4.0.0",
"purescript-aff": "^7.0.0",
"purescript-arraybuffer-types": "^3.0.2",
"purescript-web-file": "^4.0.0"
},
"devDependencies": {
"purescript-console": "^5.0.0"
"purescript-console": "^6.0.0"
}
}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
},
"scripts": {
"build": "pulp build",
"test": "pulp test --runtime cat > html/index.js"
"test": "pulp build -I test && esbuild test-entry.js --bundle --outfile=html/index.js"
},
"author": "Nicholas Wolverson <[email protected]> (http://nwolverson.uk)",
"license": "MIT"
"license": "MIT",
"dependencies": {
"pulp": "^16.0.1",
"purescript": "^0.15.0",
"purescript-psa": "^0.8.2",
"esbuild": "^0.14.39"
}
}
3 changes: 3 additions & 0 deletions test-entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as Test from "./output/Test.Main/index.js"

Test.main();

0 comments on commit c65f259

Please sign in to comment.