-
Notifications
You must be signed in to change notification settings - Fork 75
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 #693 from massalabs/the_merge
Merge next version
- Loading branch information
Showing
294 changed files
with
28,674 additions
and
29,237 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
build | ||
node_modules | ||
.github | ||
bundle.* | ||
docs | ||
dist | ||
scripts | ||
*.config.js | ||
*.config.ts | ||
package*.json | ||
.eslintrc.cjs | ||
bundle*.js | ||
|
||
**/open_rpc/** | ||
**/generated/** | ||
**/dist/** | ||
**/docs/** | ||
typedoc.json | ||
tsconfig.json | ||
test |
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 |
---|---|---|
@@ -1,11 +1,94 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
extends: ["@massalabs","prettier"], | ||
rules: { | ||
"tsdoc/syntax": "warn", | ||
"max-len": ["error", 200], | ||
camelcase: "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
'no-console': 'warn', | ||
"comma-dangle": "off" | ||
}, | ||
}; | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/strict', | ||
'plugin:@typescript-eslint/stylistic', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
root: true, | ||
rules: { | ||
'no-else-return': ['error', { allowElseIf: false }], | ||
'func-style': ['error', 'declaration', { 'allowArrowFunctions': false }], | ||
'no-magic-numbers': 'off', | ||
'@typescript-eslint/no-magic-numbers': [ | ||
'error', | ||
{ | ||
ignoreArrayIndexes: true, | ||
enforceConst: true, | ||
detectObjects: true, | ||
ignoreEnums: true, | ||
ignore: [0,1,-1,'0n','1n'], | ||
}, | ||
], | ||
'@typescript-eslint/ban-tslint-comment': 'off', | ||
'@typescript-eslint/consistent-type-definitions': [ | ||
'error', | ||
'type' | ||
], | ||
'max-params': ['error', 4], | ||
'class-methods-use-this': ['error', { exceptMethods: [] }], | ||
'@typescript-eslint/explicit-function-return-type': ['warn'], | ||
'@typescript-eslint/explicit-module-boundary-types': ['error'], | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
selector: 'default', | ||
format: ['camelCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'variable', | ||
format: ['camelCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'variable', | ||
modifiers: ['const'], | ||
format: ['camelCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'variable', | ||
modifiers: ['const', 'global'], | ||
format: ['UPPER_CASE'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'parameter', | ||
format: ['camelCase'], | ||
leadingUnderscore: 'allow', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'typeLike', | ||
format: ['PascalCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'enumMember', | ||
format: ['PascalCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'import', | ||
format: ['camelCase', 'PascalCase'], | ||
leadingUnderscore: 'forbid', | ||
trailingUnderscore: 'forbid', | ||
}, | ||
], | ||
// Not working for now. To investigate at some point. | ||
//'@typescript-eslint/prefer-nullish-coalescing': [ | ||
// 'error', | ||
// { ignoreConditionalTests: true, ignoreMixedLogicalExpressions: true }, | ||
//], | ||
}, | ||
}; |
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,21 @@ | ||
name: coverage repport | ||
on: | ||
push: | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/unit-tests.yml | ||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: jwalton/gh-find-current-pr@v1 | ||
id: findPr | ||
|
||
- uses: ArtiomTr/jest-coverage-report-action@v2 | ||
with: | ||
custom-title: Coverage report for experimental massa-web3 | ||
prnumber: ${{ steps.findPr.outputs.number }} | ||
working-directory: ./ | ||
test-script: npm test |
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,29 @@ | ||
name: Integration tests | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
PRIVATE_KEY: | ||
required: true | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/unit-tests.yml | ||
integration-tests: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build | ||
|
||
- name: Run integration tests | ||
env: | ||
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
run: npm run test:integration |
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
.github/workflows/massa-web3-deploy-test-smartContract.yml
This file was deleted.
Oops, something went wrong.
11 changes: 7 additions & 4 deletions
11
...b/workflows/workspace-npm-publish-dev.yml → .github/workflows/npm-publish-dev.yml
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
10 changes: 6 additions & 4 deletions
10
.github/workflows/workspace-npm-publish.yml → .github/workflows/npm-publish.yml
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,24 @@ | ||
name: Npm publish next | ||
|
||
on: | ||
push: | ||
branches: [next] | ||
|
||
jobs: | ||
integration-tests: | ||
uses: ./.github/workflows/integration-tests.yml | ||
secrets: | ||
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
|
||
publish-npm-next: | ||
needs: integration-tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org | ||
- run: ./scripts/publish-next.sh | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} |
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.
afa381f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report for experimental massa-web3
Test suite run success
132 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from afa381f
afa381f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report for experimental massa-web3
Test suite run success
132 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from afa381f