Skip to content

Commit

Permalink
Merge branch 'v6/tests/enable-github-actions' into v6/test-unit
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	package.json
  • Loading branch information
djordjekovac committed Apr 1, 2022
2 parents b725887 + 0238adf commit 7deb28d
Show file tree
Hide file tree
Showing 34 changed files with 1,543 additions and 397 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
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 [[email protected]]([email protected]).
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
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:
#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
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 }}
4 changes: 4 additions & 0 deletions .origintrail_noderc.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"network": {
}
}
73 changes: 67 additions & 6 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"password": ""
},
"logLevel": "trace",
"replicationFactor" : 5,
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
Expand All @@ -36,8 +36,59 @@
],
"telemetryHub": {
"enabled": false,
"packages": ["ot-telemetry-collector"],
"packages": [
"ot-telemetry-collector"
],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"test": {
"appDataPath": "data",
"autoUpdate": {
"enabled": false,
"branch": "v6/develop",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "ganache",
"networkId": "ganache::testnet",
"hubContractAddress": "",
"rpcEndpoints": [
"http://localhost:7545"
]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": [
"::1",
"127.0.0.1"
],
"telemetryHub": {
"enabled": false,
"packages": [
"ot-telemetry-collector"
],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"testnet": {
Expand Down Expand Up @@ -65,7 +116,7 @@
"password": ""
},
"logLevel": "trace",
"replicationFactor" : 5,
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
Expand All @@ -81,8 +132,13 @@
],
"telemetryHub": {
"enabled": true,
"packages": ["ot-telemetry-collector"],
"packages": [
"ot-telemetry-collector"
],
"url": "https://polaris.delta.origin-trail.network/metrics/"
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"mainnet": {
Expand All @@ -101,7 +157,7 @@
"password": ""
},
"logLevel": "trace",
"replicationFactor" : 5,
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
Expand All @@ -113,8 +169,13 @@
],
"telemetryHub": {
"enabled": false,
"packages": ["ot-telemetry-collector"],
"packages": [
"ot-telemetry-collector"
],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
}
}
1 change: 0 additions & 1 deletion config/sequelizeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require('dotenv').config();
module.exports = {
username: 'root',
password: '',
database: 'operationaldb',
dialect: 'mysql',
host: 'localhost',
port: 3306,
Expand Down
Loading

0 comments on commit 7deb28d

Please sign in to comment.