diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6bf9c43 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Use Node.js 10.x + uses: actions/setup-node@v1 + with: + version: 10.x + - name: Install and test + run: | + TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p') + 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 pulp + npm install + bower install + + PATH=$HOME/purescript:$PATH + pulp test diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index d6efa35..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Node.js -# Build a general Node.js project with npm. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript - -pool: - vmImage: 'Ubuntu 16.04' - -steps: -- task: NodeTool@0 - inputs: - versionSpec: '10.x' - displayName: 'Install Node.js' - -- script: | - npm set prefix ~/.npm - npm install -g purescript purescript-psa pulp bower - npm install - bower install - displayName: 'install deps' - -- script: | - export PATH=~/.npm/bin:$PATH - pulp build -- --stash --censor-lib - pulp test - displayName: 'build' diff --git a/bower.json b/bower.json index 864112c..7dfffff 100644 --- a/bower.json +++ b/bower.json @@ -12,16 +12,16 @@ "output" ], "dependencies": { - "purescript-prelude": "^4.0.1", - "purescript-record": "^1.0.0", + "purescript-prelude": "^4.1.1", + "purescript-record": "^2.0.1", "purescript-functions": "^4.0.0", - "purescript-node-http": "^5.0.0", - "purescript-aff-promise": "^2.0.0", - "purescript-node-buffer": "^5.0.0" + "purescript-node-http": "^5.0.2", + "purescript-aff-promise": "^2.1.0", + "purescript-node-buffer": "^6.0.0" }, "devDependencies": { - "purescript-milkis": "^6.0.1", - "purescript-test-unit": "^14.0.0", - "purescript-node-process": "^6.0.0" + "purescript-milkis": "^7.2.1", + "purescript-test-unit": "^15.0.0", + "purescript-node-process": "^7.0.0" } }