Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
166 changes: 166 additions & 0 deletions .github/workflows/functional.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
name: NAMESERVICE-FUNCTIONAL-TESTS

on:
push:
branches:
- "master"
- "develop"
pull_request:
types: [ready_for_review, synchronize, opened]

jobs:
functional-nameservice-transactions-single-passphrase:
name: NAMESERVICE-SINGLE-PASSPHRASE
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
matrix:
node-version: [12.x]
env:
CORE_DB_DATABASE: ark_unitnet
CORE_DB_USERNAME: ark
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn && yarn build

- name: TEST
run: |
cd packages/nameservice-transactions
yarn test __tests__/functional/transaction-forging/nameservice/single-passphrase.test.ts --forceExit

functional-nameservice-transactions-second-passphrase:
name: NAMESERVICE-SECOND-PASSPHRASE
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
matrix:
node-version: [12.x]
env:
CORE_DB_DATABASE: ark_unitnet
CORE_DB_USERNAME: ark
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn && yarn build

- name: TEST
run: |
cd packages/nameservice-transactions
yarn test __tests__/functional/transaction-forging/nameservice/second-passphrase.test.ts --forceExit

functional-nameservice-transactions-multi-signature:
name: NAMESERVICE-MULTI-SIGNATURE
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
matrix:
node-version: [12.x]
env:
CORE_DB_DATABASE: ark_unitnet
CORE_DB_USERNAME: ark
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn && yarn build

- name: TEST
run: |
cd packages/nameservice-transactions
yarn test __tests__/functional/transaction-forging/nameservice/multi-signature.test.ts --forceExit

functional-nameservice-transactions-vendor-field:
name: NAMESERVICE-VENDOR-FIELD
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
matrix:
node-version: [ 12.x ]
env:
CORE_DB_DATABASE: ark_unitnet
CORE_DB_USERNAME: ark
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn && yarn build

- name: TEST
run: |
cd packages/nameservice-transactions
yarn test __tests__/functional/transaction-forging/nameservice/vendor-field.test.ts --forceExit
49 changes: 49 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: INTEGRATION-TESTS

on:
push:
branches:
- "master"
- "develop"
pull_request:
types: [ ready_for_review, synchronize, opened ]

jobs:
api-integration:
name: INTEGRATION-API
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
matrix:
node-version: [ 12.x ]
env:
CORE_DB_DATABASE: ark_unitnet
CORE_DB_USERNAME: ark
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn && yarn build

- name: NAMESERVICE-API
run: |
cd packages/nameservice-api
yarn test:integration:coverage --coverageDirectory .coverage/integration-nameservice-api
38 changes: 38 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: UNIT-TESTS

on:
push:
branches:
- "master"
- "develop"
pull_request:
types: [ready_for_review, synchronize, opened]

jobs:
unit:
name: UNIT (API, CRYPTO, TRANSACTIONS)
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install And Build
run: yarn && yarn build

- name: NAMESERVICE-CRYPTO
run: cd packages/nameservice-crypto && yarn test:unit:coverage --coverageDirectory .coverage/unit-nameservice-crypto --maxWorkers=2

- name: NAMESERVICE-TRANSACTIONS
run: cd packages/nameservice-transactions && yarn test:unit:coverage --coverageDirectory .coverage/unit-nameservice-transactions --maxWorkers=2

- name: NAMESERVICE-API
run: cd packages/nameservice-api && yarn test:unit:coverage --coverageDirectory .coverage/unit-nameservice-api --maxWorkers=2
Loading