Skip to content

Commit

Permalink
Merge pull request #1910 from OriginTrail/v6/prerelease/testnet
Browse files Browse the repository at this point in the history
OriginTrail 6.0.0-beta.1.34 Testnet Release
  • Loading branch information
zeroxbt committed Apr 8, 2022
2 parents db6bc64 + 20b167c commit e5abb32
Show file tree
Hide file tree
Showing 60 changed files with 5,751 additions and 1,701 deletions.
29 changes: 4 additions & 25 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,19 @@ module.exports = {
es6: true,
node: true,
},
extends: 'airbnb',
extends: ['airbnb', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2017,
},
rules: {
indent: [
'error',
4,
],
'linebreak-style': [
'error',
'unix',
],
'linebreak-style': ['error', 'unix'],
camelcase: 0,
'class-methods-use-this': 0,
'no-unused-vars': 0,
'no-return-assign': 0,
'consistent-return': 0,
'no-var': 0,
'vars-on-top': 0,
'block-scoped-var': 0,
'no-restricted-syntax': 0,
'guard-for-in': 0,
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'no-shadow': 0,
semi: [
'error',
'always',
],
'no-console': [
'error',
{ allow: ['warn', 'error', 'log'] },
],
'no-console': 'warn',
'no-continue' : 1,
},
};
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @branarakic @djordjekovac @kotlarmilos @NZT48
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report_v6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report for v6 ot-node
about: Create an issue report
title: ''
labels: ''
assignees: ''

---

## Issue description

## Expected behavior

## Actual behavior

## Steps to reproduce the problem

1.
2.
3.

## Specifications

- Node version:
- Platform:
- Node wallet:
- Node libp2p identity:

## Contact details
- Email:

## Error logs


## Disclaimer

Please be aware that the issue reported on a public repository allows everyone to see your node logs, node details, and contact details. If you have any sensitive information, feel free to share it by sending an email to [tech@origin-trail.com](tech@origin-trail.com).
21 changes: 21 additions & 0 deletions .github/release-drafter-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name-template: 'OriginTrail Release $NEXT_PATCH_VERSION'
tag-template: "$NEXT_PATCH_VERSION"
version-template: "v$MAJOR.$MINOR.$PATCH"
categories:
- title: '🚀 Features'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '🧰 Maintenance'
labels:
- 'internal process'
- title: '⚠️ Breaking changes'
labels:
- 'breaking change'
change-template: '- $TITLE (#$NUMBER)'
template: |
# Changes
$CHANGES
33 changes: 33 additions & 0 deletions .github/workflows/CHECK-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CHECK-lint

#todo this test should be execute when opening PR to prerelease/release branches
on: [pull_request]
env:
NODE_ENV: test
ARTIFACTS_DIR: artifacts
CUCUMBER_ARTIFACTS_DIR: artifacts/cucumber
jobs:
check-lint:
#todo think about locking the version - version should be the same as the one in official documentation
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: mkdir -p $ARTIFACTS_DIR
- run: cp .origintrail_noderc.tests .origintrail_noderc
- run: sudo chmod -R 777 $ARTIFACTS_DIR
- run: mkdir -p $CUCUMBER_ARTIFACTS_DIR
- run: sudo chmod -R 777 $CUCUMBER_ARTIFACTS_DIR
- run: npm run lint;
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: my-artifact
path: /home/runner/work/ot-node/ot-node/artifacts
49 changes: 49 additions & 0 deletions .github/workflows/TEST-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: TEST-release

#todo this test should be execute when opening PR to prerelease/release branches
on: [pull_request]
env:
NODE_ENV: test
ARTIFACTS_DIR: artifacts
CUCUMBER_ARTIFACTS_DIR: artifacts/cucumber
jobs:

test-release:
#todo think about locking the version - version should be the same as the one in official documentation
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: operationaldb
MYSQL_USER: node
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
graphdb:
image: khaller/graphdb-free:latest
ports:
- 7200:7200
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: mkdir -p $ARTIFACTS_DIR
- run: cp .origintrail_noderc.tests .origintrail_noderc
- run: sudo chmod -R 777 $ARTIFACTS_DIR
- run: mkdir -p $CUCUMBER_ARTIFACTS_DIR
- run: sudo chmod -R 777 $CUCUMBER_ARTIFACTS_DIR
- run: npm run test:bdd:release;
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: my-artifact
path: /home/runner/work/ot-node/ot-node/artifacts
49 changes: 49 additions & 0 deletions .github/workflows/TEST-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: TEST-unit

#todo this test should be execute when opening PR to prerelease/release branches
on: [pull_request]
env:
NODE_ENV: test
ARTIFACTS_DIR: artifacts
CUCUMBER_ARTIFACTS_DIR: artifacts/cucumber
jobs:

test-unit:
#todo think about locking the version - version should be the same as the one in official documentation
runs-on: ubuntu-latest
# services:
# mysql:
# image: mysql:5.7
# env:
# MYSQL_DATABASE: operationaldb
# MYSQL_USER: node
# MYSQL_PASSWORD: password
# MYSQL_ROOT_PASSWORD: password
# ports:
# - 3306:3306
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
# graphdb:
# image: khaller/graphdb-free:latest
# ports:
# - 7200:7200
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: mkdir -p $ARTIFACTS_DIR
- run: cp .origintrail_noderc.tests .origintrail_noderc
- run: sudo chmod -R 777 $ARTIFACTS_DIR
- run: mkdir -p $CUCUMBER_ARTIFACTS_DIR
- run: sudo chmod -R 777 $CUCUMBER_ARTIFACTS_DIR
- run: npm run test:unit;
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: my-artifact
path: /home/runner/work/ot-node/ot-node/artifacts
19 changes: 19 additions & 0 deletions .github/workflows/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- develop

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v6
with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-drafter-template.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

#npm run lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js, json}": ["prettier --write", "eslint"]
}
4 changes: 4 additions & 0 deletions .origintrail_noderc.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"network": {
}
}
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"tabWidth": 4,
"bracketSpacing": true
}
3 changes: 2 additions & 1 deletion Ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get -qq update
RUN apt-get -qq -y install wget apt-transport-https
RUN apt-get -qq -y install git nodejs
RUN apt-get -qq -y install mysql-server unzip nano
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends mysql-server
RUN apt-get -qq -y install unzip nano
RUN apt-get -qq -y install make python

#Install Papertrail
Expand Down
Loading

0 comments on commit e5abb32

Please sign in to comment.