Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

TrackerRegistry #40

Merged
merged 10 commits into from Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 11 additions & 7 deletions .eslintrc.js
Expand Up @@ -2,18 +2,22 @@ const DISABLED = 0
const WARN = 1
const ERROR = 2

module.exports = exports = {
module.exports = {
extends: [
'streamr-nodejs'
],
rules: {
'max-len': ["error", {
"code": 150,
"ignoreTemplateLiterals": true,
"ignoreStrings": true
'max-len': ['error', {
code: 150,
ignoreTemplateLiterals: true,
ignoreStrings: true
}],
'import/no-cycle': WARN,
'no-plusplus': ["error", { "allowForLoopAfterthoughts": true }],
'no-underscore-dangle': ["error", { "allowAfterThis": true }],
'no-plusplus': ['error', {
allowForLoopAfterthoughts: true
}],
'no-underscore-dangle': ['error', {
allowAfterThis: true
}],
}
}
46 changes: 41 additions & 5 deletions .github/workflows/nodejs.yml
Expand Up @@ -30,12 +30,12 @@ jobs:
npm run eslint

test:
name: Testing using Node ${{ matrix.node-version }}
name: Test Unit/Build/Benchmark using Node ${{ matrix.node-version }}
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 13.x, 14.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v1
Expand All @@ -46,11 +46,47 @@ jobs:
- name: npm ci
run: npm ci

- name: test
run: npm run test
- name: test-unit
run: npm run test-unit

- name: build
run: npm run build

- name: benchmarks
run: npm run benchmark

integration:
name: Test Integration using Node ${{ matrix.node-version }}
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: setup streamr-docker-dev
run: |
sudo service mysql stop
git clone https://github.com/streamr-dev/streamr-docker-dev.git
sudo ifconfig docker0 10.200.10.1/24
${GITHUB_WORKSPACE}/streamr-docker-dev/streamr-docker-dev/bin.sh start --wait

- name: npm ci
run: npm ci

- name: build
run: npm run build

- name: test-integration
run: npm run test-integration

publish:
needs: [test, eslint]
needs: [eslint, test, integration]
name: Publishing master using Node 12
runs-on: ubuntu-latest

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -26,7 +26,6 @@ node_modules

# Users Environment Variables
.lock-wscript
*.iml
.DS_Store
dist/*
examples/webpack/dist/*
Expand Down
17 changes: 17 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/streamr-client-protocol-js.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.