This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.3.0' of https://github.com/LiskHQ/lisk-sdk
- Loading branch information
Showing
130 changed files
with
3,223 additions
and
3,679 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
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,17 @@ | ||
--- | ||
name: Feature specification | ||
about: Specification of new features/improvements | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
### Description | ||
|
||
Please describe the specification of new features/improvements | ||
|
||
### Acceptance Criteria | ||
|
||
Please describe the conditions which must be met for this issue to close | ||
|
||
### Additional Information |
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: 'Prepare: Build and cache packages' | ||
description: 'Prepares the repo for a job by building dependencies' | ||
inputs: | ||
cache-key: | ||
description: 'Key of the cache to use' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/cache@v3 | ||
id: nx-cache | ||
with: | ||
path: | | ||
node_modules | ||
**/node_modules/** | ||
key: cache-nx-${{ hashFiles('yarn.lock') }}-${{ inputs.cache-key }}-${{ github.sha }} | ||
restore-keys: | | ||
cache-nx-${{ hashFiles('yarn.lock') }}-${{ inputs.cache-key }}-${{ github.sha }} | ||
- name: Build | ||
shell: bash | ||
run: yarn build |
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,14 @@ | ||
name: 'Prepare: Checkout and Install' | ||
description: 'Prepares the repo for a job by checking out and installing dependencies' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
- name: Install dependencies | ||
shell: bash | ||
run: yarn --prefer-offline |
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,4 @@ | ||
paths-ignore: | ||
- ./protocol-specs | ||
- ./scripts | ||
- ./templates |
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,25 @@ | ||
name: "Branch" | ||
|
||
on: | ||
push: | ||
branches: [ "development", feature/*, hotfix/*, main, release/* ] | ||
|
||
jobs: | ||
code-cov-canary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install | ||
uses: ./.github/actions/prepare-install | ||
- name: Build | ||
uses: ./.github/actions/prepare-build | ||
with: | ||
cache-key: ${{ github.ref }} | ||
- run: npm config set //npm.lisk.com/:_authToken=$NPM_TOKEN | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish | ||
run: npx lerna publish --canary --preid canary --registry https://npm.lisk.com --yes |
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,59 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "development", feature/*, hotfix/*, main, release/* ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "development", feature/*, hotfix/*, main, release/* ] | ||
schedule: | ||
- cron: '30 3 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
language: [ 'typescript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
config-file: ./.github/codeql/codeql-config.yml | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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,20 @@ | ||
# Dependency Review Action | ||
# | ||
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. | ||
# | ||
# Source repository: https://github.com/actions/dependency-review-action | ||
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v3 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@v2 |
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,91 @@ | ||
name: 'PR' | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/actions/prepare-install | ||
- name: Build | ||
uses: ./.github/actions/prepare-build | ||
with: | ||
cache-key: ${{ github.event.number }} | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git branch --track ${{ github.base_ref }} origin/${{ github.base_ref }} | ||
- name: Install | ||
uses: ./.github/actions/prepare-install | ||
- name: Build | ||
uses: ./.github/actions/prepare-build | ||
with: | ||
cache-key: ${{ github.event.number }} | ||
- run: yarn format | ||
- name: Check format | ||
run: | | ||
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then | ||
echo "All files formatted" | ||
else | ||
echo "Running format is required" | ||
exit 1 | ||
fi | ||
- run: yarn lint | ||
|
||
unit-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/actions/prepare-install | ||
- name: Build | ||
uses: ./.github/actions/prepare-build | ||
with: | ||
cache-key: ${{ github.event.number }} | ||
- run: yarn test:elements | ||
- run: yarn test:framework | ||
- run: yarn test:commander | ||
|
||
integration-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/actions/prepare-install | ||
- name: Build | ||
uses: ./.github/actions/prepare-build | ||
with: | ||
cache-key: ${{ github.event.number }} | ||
- run: yarn nx run-many --target=test:integration --projects=lisk-framework | ||
|
||
functional-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/actions/prepare-install | ||
- name: Build | ||
uses: ./.github/actions/prepare-build | ||
with: | ||
cache-key: ${{ github.event.number }} | ||
- run: yarn nx run-many --target=test:debug --projects=lisk-sdk-test |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.