-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2624 from OriginTrail/v6/prerelease/mainnet
Mainnet 6.0.11 Release
- Loading branch information
Showing
87 changed files
with
2,266 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: setup | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup NodeJS | ||
id: nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: npm | ||
|
||
- name: Cache node modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | ||
${{ runner.os }}-node-modules- | ||
- name: Cache Blazegraph | ||
id: cache-blazegraph | ||
uses: actions/cache@v3 | ||
with: | ||
path: blazegraph.jar | ||
key: ${{ runner.os }}-blazegraph-${{ hashFiles('blazegraph.jar') }} | ||
restore-keys: ${{ runner.os }}-blazegraph- | ||
|
||
- if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
name: Install dependencies & compile contracts | ||
shell: bash | ||
run: | | ||
npm ci | ||
npm explore dkg-evm-module -- npm run compile | ||
- if: steps.cache-blazegraph.outputs.cache-hit != 'true' | ||
name: Download Blazegraph | ||
shell: bash | ||
run: wget https://github.com/blazegraph/database/releases/latest/download/blazegraph.jar |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: checks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- v6/develop | ||
|
||
env: | ||
REPOSITORY_PASSWORD: password | ||
JWT_SECRET: aTx13FzDG+85j9b5s2G7IBEc5SJNJZZLPLe7RF8hu1xKgRKj46YFRx/z7fJi7iF2NnL7SHcxTzq7TySuPKWkdg/AYKEMD2p1I++qPYFHqg8KQeLArGjCYiqtf43i1Fgtya8z9qJXyegogMz/jYori2BJ8v6b4K3GkAw3XxiO7VaaEYktOp8qsRDcN3b+bITMZqztDvZdWp4EnViGjoES7fRFhKm/d/2C8URnQyGm6xgTR3xTfAjy7+milGmoPA0KU0nu+GsZIhOfeVc9Z2nfxOK/1JQykpjeBhNDYTOr31yW/xdvoW0Kq0PZ6JmM+yezLoyQXcYjavZ+X7cXjbREQg== | ||
|
||
concurrency: | ||
group: checks-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up environment | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run linter | ||
run: npm run lint | ||
|
||
unit-tests: | ||
runs-on: ubuntu-latest | ||
services: | ||
graphdb: | ||
image: khaller/graphdb-free:latest | ||
ports: | ||
- 7200:7200 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up environment | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run unit tests | ||
run: npm run test:unit | ||
|
||
bdd-tests: | ||
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 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up environment | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run Blazegraph | ||
run: /usr/bin/java -Djava.awt.headless=true -jar blazegraph.jar & | ||
|
||
- name: Run BDD tests | ||
run: npm run test:bdd | ||
|
||
- name: Upload log files | ||
if: '!cancelled()' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bdd-test-logs | ||
path: ./test/bdd/log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: update-cache | ||
|
||
on: | ||
push: | ||
branches: | ||
- v6/develop | ||
|
||
concurrency: | ||
group: update-cache-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-cache: | ||
name: Build Cache | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up environment | ||
uses: ./.github/actions/setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.