Skip to content

Commit

Permalink
feat: add unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amacar committed Nov 19, 2020
1 parent fc4644c commit 7818b38
Show file tree
Hide file tree
Showing 276 changed files with 2,082 additions and 4,759 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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@v1
with:
node-version: ${{ matrix.node-version }}

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

- name: NOTARIZATION-CRYPTO
run: cd packages/notarization-crypto && yarn test:unit:coverage --coverageDirectory .coverage/unit-notarization-crypto --maxWorkers=2
4,046 changes: 1,367 additions & 2,679 deletions .pnp.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-4af5b4bfe1-7bc048c164.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/got-npm-11.7.0-cacb9b44fc-780b4b1d33.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/pg-npm-8.4.1-976a43f8cd-56e396cdad.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/resolve-patch-38ce149af0-4bcfb56886.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ws-npm-7.3.1-0fa30fe373-9302f1f665.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
55 changes: 0 additions & 55 deletions .yarn/releases/yarn-2.3.3.cjs

This file was deleted.

55 changes: 55 additions & 0 deletions .yarn/releases/yarn-sources.cjs

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
packageExtensions:
"@arkecosystem/core-database@*":
dependencies:
"pg": "latest"
pg: latest
"@arkecosystem/core-kernel@*":
dependencies:
"@arkecosystem/core-api": "next"
"@arkecosystem/core-blockchain": "next"
"@arkecosystem/core-database": "next"
"@arkecosystem/core-forger": "next"
"@arkecosystem/core-logger-pino": "next"
"@arkecosystem/core-magistrate-api": "next"
"@arkecosystem/core-magistrate-transactions": "next"
"@arkecosystem/core-manager": "next"
"@arkecosystem/core-p2p": "next"
"@arkecosystem/core-snapshots": "next"
"@arkecosystem/core-state": "next"
"@arkecosystem/core-transaction-pool": "next"
"@arkecosystem/core-transactions": "next"
"@arkecosystem/core-webhooks": "next"
"@protokol/nft-base-transactions": "beta"
"@protokol/nft-base-api": "beta"
"@protokol/nft-exchange-transactions": "beta"
"@protokol/nft-exchange-api": "beta"
"@protokol/guardian-transactions": "beta"
"@protokol/guardian-api": "beta"
"@arkecosystem/core-api": next
"@arkecosystem/core-blockchain": next
"@arkecosystem/core-database": next
"@arkecosystem/core-forger": next
"@arkecosystem/core-logger-pino": next
"@arkecosystem/core-magistrate-api": next
"@arkecosystem/core-magistrate-transactions": next
"@arkecosystem/core-manager": next
"@arkecosystem/core-p2p": next
"@arkecosystem/core-snapshots": next
"@arkecosystem/core-state": next
"@arkecosystem/core-transaction-pool": next
"@arkecosystem/core-transactions": next
"@arkecosystem/core-webhooks": next
"@protokol/guardian-api": beta
"@protokol/guardian-transactions": beta
"@protokol/nft-base-api": beta
"@protokol/nft-base-transactions": beta
"@protokol/nft-exchange-api": beta
"@protokol/nft-exchange-transactions": beta
"@arkecosystem/core-transaction-pool@*":
dependencies:
"@arkecosystem/core-magistrate-crypto": "next"
"@arkecosystem/core-magistrate-crypto": next
bytebuffer: latest
"@arkecosystem/core@*":
dependencies:
"@oclif/errors": latest
"@arkecosystem/crypto@*":
dependencies:
"@types/node": "latest"
"@arkecosystem/core@*":
"@types/node": latest
"@oclif/plugin-help@*":
dependencies:
"@oclif/errors": "latest"
"@oclif/errors": latest
"@protokol/nft-base-transactions@*":
dependencies:
"ajv": "latest"
ajv: latest
"@types/eslint-plugin-prettier@*":
dependencies:
"eslint": "latest"
"node-fetch@*":
eslint: latest
node-fetch@*:
dependencies:
"domexception": "latest"
"pg-cursor@*":
domexception: latest
pg-cursor@*:
dependencies:
"pg": "latest"
"typeorm@*":
pg: latest
typeorm@*:
dependencies:
"pg": "latest"
"pg-query-stream": "latest"
"@oclif/plugin-help@*":
dependencies:
"@oclif/errors": "latest"

pg: latest
pg-query-stream: latest

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
Expand All @@ -64,4 +64,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"

yarnPath: .yarn/releases/yarn-2.3.3.cjs
yarnPath: .yarn/releases/yarn-sources.cjs
7 changes: 1 addition & 6 deletions packages/notarization-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,20 @@
"bytebuffer": "^5.0.1"
},
"devDependencies": {
"@arkecosystem/core-kernel": "^3.0.0-next.9",
"@arkecosystem/core-test-framework": "3.0.0-next.9",
"@sindresorhus/tsconfig": "~0.7.0",
"@types/jest": "~26.0.15",
"@types/node": "^14.14.8",
"@types/rimraf": "^3.0.0",
"@types/uuid": "^8.3.0",
"big-integer": "^1.6.48",
"buffer-es6": "^4.9.3",
"codecov": "^3.8.1",
"cross-env": "^7.0.2",
"jest": "~26.6.3",
"jest-extended": "0.11.5",
"process-es6": "^0.11.6",
"rimraf": "^3.0.2",
"ts-jest": "~26.4.4",
"typedoc": "~0.19.2",
"typescript": "~4.0.5",
"util": "^0.12.3"
"typescript": "~4.0.5"
},
"publishConfig": {
"access": "public"
Expand Down
Empty file modified scripts/deps.sh
100644 → 100755
Empty file.
Loading

0 comments on commit 7818b38

Please sign in to comment.