Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 18
Migrate to GitHub Actions#38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "parserOptions": { | ||
| "ecmaVersion": 5 | ||
| }, | ||
| "extends": "eslint:recommended", | ||
| "env": { | ||
| "commonjs": true | ||
| }, | ||
| "rules": { | ||
| "strict": [2, "global"], | ||
| "block-scoped-var": 2, | ||
| "consistent-return": 2, | ||
| "eqeqeq": [2, "smart"], | ||
| "guard-for-in": 2, | ||
| "no-caller": 2, | ||
| "no-extend-native": 2, | ||
| "no-loop-func": 2, | ||
| "no-new": 2, | ||
| "no-param-reassign": 2, | ||
| "no-return-assign": 2, | ||
| "no-unused-expressions": 2, | ||
| "no-use-before-define": 2, | ||
| "radix": [2, "always"], | ||
| "indent": [2, 2], | ||
| "quotes": [2, "double"], | ||
| "semi": [2, "always"] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| /.* | ||
| !/.gitignore | ||
| !/.travis.yml | ||
| !/.eslintrc.json | ||
| !/.github/ | ||
| /bower_components/ | ||
| /node_modules/ | ||
| /output/ | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| /* global exports */ | ||
| /* global Buffer */ | ||
| "use strict"; | ||
| exports.copyAll = function(a) { | ||
| return function() { | ||
| exports.copyAll = function(a) { | ||
| return function() { | ||
| return Buffer.from(a); | ||
| }; | ||
| }; | ||
| @@ -12,10 +11,10 @@ exports.writeInternal = function (ty) { | ||
| return function (value) { | ||
| return function (offset) { | ||
| return function (buf) { | ||
| return function() { | ||
| buf['write' + ty](value, offset); | ||
| return function() { | ||
| buf["write" + ty](value, offset); | ||
| return {}; | ||
| } | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| @@ -26,9 +25,9 @@ exports.writeStringInternal = function (encoding) { | ||
| return function (length) { | ||
| return function (value) { | ||
| return function (buff) { | ||
| return function() { | ||
| return function() { | ||
| return buff.write(value, offset, length, encoding); | ||
| } | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| @@ -38,7 +37,7 @@ exports.writeStringInternal = function (encoding) { | ||
| exports.setAtOffset = function (value) { | ||
| return function (offset) { | ||
| return function (buff) { | ||
| return function() { | ||
| return function() { | ||
| buff[offset] = value; | ||
| return {}; | ||
thomashoneyman marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| }; | ||
| @@ -51,7 +50,7 @@ exports.copy = function (srcStart) { | ||
| return function (src) { | ||
| return function (targStart) { | ||
| return function (targ) { | ||
| return function() { | ||
| return function() { | ||
| return src.copy(targ, targStart, srcStart, srcEnd); | ||
| }; | ||
| }; | ||
| @@ -64,7 +63,7 @@ exports.fill = function (octet) { | ||
| return function (start) { | ||
| return function (end) { | ||
| return function (buf) { | ||
| return function() { | ||
| return function() { | ||
| buf.fill(octet, start, end); | ||
| return {}; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| /* global exports */ | ||
| /* global Buffer */ | ||
| "use strict"; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to return {} anymore for unit, correct?