Skip to content

Commit

Permalink
Merge 48199b9 into f664691
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Richards committed Jul 2, 2021
2 parents f664691 + 48199b9 commit 13a3670
Show file tree
Hide file tree
Showing 88 changed files with 51,107 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
mocha: true, // for test files
"truffle/globals": true, // same as "truffle/truffle": true
},
extends: "prettier",
parserOptions: {
ecmaVersion: 2020,
},
rules: {},
plugins: ["truffle"],
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sol linguist-language=Solidity
36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Installing Packages
run: npm ci
- name: Checking Formatting
run: npm run lint && npm run prettier-check
- name: Test Coverage
run: npm run test
# - name: Code Coverage
# run: npm run coverage
# - name: Coveralls GitHub Action
# uses: coverallsapp/github-action@v1.1.2
# with:
# github-token: ${{ secrets.COVERALLS }}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,14 @@ dist

# TernJS port file
.tern-port

# Custom
cache
build
artifacts
.vscode
coverage
coverage.json
.DS_Store
ORIGINS.code-workspace
__pycache__
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
__pycache__
.DS_Store
.history
.hypothesis/
artifacts/
build/
reports/
node_modules/
!.solhint.json
package-lock.json
coverage
coverage.json
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"overrides": [
{
"files": ["*.sol", "*.js"],
"options": {
"printWidth": 140,
"tabWidth": 4,
"useTabs": true,
"singleQuote": false,
"bracketSpacing": true,
"explicitTypes": "always"
}
}
]
}
3 changes: 3 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
skipFiles: ['Sovryn', 'Openzeppelin', 'Interfaces']
};
8 changes: 8 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "solhint:default",
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"max-line-length": ["warn",140]
}
}
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: node_js
os: linux
dist: xenial
node_js:
- "10"

cache:
directories:
- node_modules

before_install:
- export NODE_OPTIONS=--max_old_space_size=6144

install:
- npm ci

script:
- npm run coverage

after_script:
- cat coverage/lcov.info | coveralls
Loading

0 comments on commit 13a3670

Please sign in to comment.