Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/6.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Nov 6, 2023
2 parents 4814450 + 888c131 commit 4f15491
Show file tree
Hide file tree
Showing 2,188 changed files with 306,687 additions and 134,585 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ jest.config.js
coverage
benchmark
.eslintrc.js
ecosystem.config.js
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ module.exports = {
tsconfigRootDir: __dirname,
},
extends: ['lisk-base/ts'],
rules: {
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-unsafe-argument': ['warn'],
},
};
4 changes: 4 additions & 0 deletions .eslintrc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ module.exports = {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
rules: {
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
},
};
7 changes: 7 additions & 0 deletions .github/workflows/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.ref }}
- run: yarn test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage-final.json
name: codecov-umbrella
- run: npm config set //npm.lisk.com/:_authToken=$NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn format
- run: yarn format:since --base ${{ github.base_ref }}
- name: Check format
run: |
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
Expand All @@ -41,7 +41,10 @@ jobs:
echo "Running format is required"
exit 1
fi
- run: yarn lint
- run: yarn lint:since --base ${{ github.base_ref }}
- name: Check duplicate schema
run: |
node scripts/duplicate_schema_id.js ./
unit-test:
runs-on: ubuntu-latest
Expand All @@ -56,9 +59,15 @@ jobs:
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn test:elements
- run: yarn test:framework
- run: yarn test:commander
- run: yarn test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: coverage-final.json
name: codecov-umbrella
verbose: true

integration-test:
runs-on: ubuntu-latest
Expand All @@ -73,7 +82,7 @@ jobs:
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn nx run-many --target=test:integration --projects=lisk-framework
- run: yarn nx run-many --target=test:integration --projects=lisk-framework

functional-test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ build/Release
# Dependency directories
node_modules
jspm_packages
.husky

# Optional npm cache directory
.npm
Expand All @@ -72,6 +71,7 @@ browsertest/browsertest.min.js
browsertest/src
browsertest/test
tsconfig.tsbuildinfo
.parcel-cache

# Unsupported lock files
package-lock.json
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
17 changes: 17 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
codecov:
max_report_age: 30
notify:
wait_for_ci: false
github_checks:
annotations: false
coverage:
status:
project:
default:
# basic
target: auto
threshold: 1%
base: auto
comment:
layout: "reach, diff, flags, files"
behavior: default
16 changes: 8 additions & 8 deletions commander/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Upon successful completion, NPM will add the `lisk-commander` executable `lisk`

## Usage

```sh-session
```shell
$ lisk COMMAND
running command...
$ lisk (-v|--version|version)
Expand Down Expand Up @@ -58,13 +58,13 @@ $ npm test

## Get Involved

| Reason | How |
| ------------------------------- | ---------------------------------------------------------------------------------------------- |
| Want to chat with our community | [Reach them on Discord](https://discord.gg/lisk) |
| Found a bug | [Open a new issue](https://github.com/LiskHQ/lisk/issues/new) |
| Found a security issue | [See our bounty program](https://blog.lisk.io/announcing-lisk-bug-bounty-program-5895bdd46ed4) |
| Want to share your research | [Propose your research](https://research.lisk.io) |
| Want to develop with us | [Create a fork](https://github.com/LiskHQ/lisk/fork) |
| Reason | How |
| ------------------------------- | ----------------------------------------------------------------------------------------------- |
| Want to chat with our community | [Reach them on Discord](https://discord.gg/lisk) |
| Found a bug | [Open a new issue](https://github.com/LiskHQ/lisk/issues/new) |
| Found a security issue | [See our bounty program](https://blog.lisk.com/announcing-lisk-bug-bounty-program-5895bdd46ed4) |
| Want to share your research | [Propose your research](https://research.lisk.com) |
| Want to develop with us | [Create a fork](https://github.com/LiskHQ/lisk/fork) |

## License

Expand Down
6 changes: 3 additions & 3 deletions commander/bin/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

require('@oclif/command')
require('@oclif/core')
.run()
.then(require('@oclif/command/flush'))
.catch(require('@oclif/errors/handle'));
.then(require('@oclif/core/flush'))
.catch(require('@oclif/core/handle'));
16 changes: 7 additions & 9 deletions commander/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
module.exports = {
globals: {
'ts-jest': {
tsconfig: './test/tsconfig.json',
},
},
testMatch: ['<rootDir>/test/**/?(*.)+(spec|test).+(ts|tsx|js)'],
setupFilesAfterEnv: ['<rootDir>/test/setup.js'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
moduleNameMapper: {
'^axios$': 'axios/dist/axios.js',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: '<rootDir>/test/tsconfig.json',
},
],
},
verbose: false,
collectCoverage: false,
Expand Down Expand Up @@ -40,4 +37,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testEnvironment: 'node',
};
Loading

0 comments on commit 4f15491

Please sign in to comment.