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

Commit bb1def8

Browse files
committed
Merge branch 'release/5.3.0' of https://github.com/LiskHQ/lisk-sdk
2 parents 1ce8dd7 + 4916896 commit bb1def8

File tree

130 files changed

+3223
-3679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+3223
-3679
lines changed

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@ Please describe what functionality is needed
1414

1515
Please describe why it is needed
1616

17-
### Acceptance Criteria
18-
19-
Please describe the conditions which must be met for this issue to close
20-
2117
### Additional Information
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature specification
3+
about: Specification of new features/improvements
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
### Description
10+
11+
Please describe the specification of new features/improvements
12+
13+
### Acceptance Criteria
14+
15+
Please describe the conditions which must be met for this issue to close
16+
17+
### Additional Information
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Prepare: Build and cache packages'
2+
description: 'Prepares the repo for a job by building dependencies'
3+
inputs:
4+
cache-key:
5+
description: 'Key of the cache to use'
6+
required: true
7+
8+
runs:
9+
using: 'composite'
10+
steps:
11+
- uses: actions/cache@v3
12+
id: nx-cache
13+
with:
14+
path: |
15+
node_modules
16+
**/node_modules/**
17+
key: cache-nx-${{ hashFiles('yarn.lock') }}-${{ inputs.cache-key }}-${{ github.sha }}
18+
restore-keys: |
19+
cache-nx-${{ hashFiles('yarn.lock') }}-${{ inputs.cache-key }}-${{ github.sha }}
20+
- name: Build
21+
shell: bash
22+
run: yarn build
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Prepare: Checkout and Install'
2+
description: 'Prepares the repo for a job by checking out and installing dependencies'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: Use Node.js 18
8+
uses: actions/setup-node@v3
9+
with:
10+
node-version: 18
11+
cache: 'yarn'
12+
- name: Install dependencies
13+
shell: bash
14+
run: yarn --prefer-offline

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
paths-ignore:
2+
- ./protocol-specs
3+
- ./scripts
4+
- ./templates

.github/workflows/branch.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Branch"
2+
3+
on:
4+
push:
5+
branches: [ "development", feature/*, hotfix/*, main, release/* ]
6+
7+
jobs:
8+
code-cov-canary:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Install
16+
uses: ./.github/actions/prepare-install
17+
- name: Build
18+
uses: ./.github/actions/prepare-build
19+
with:
20+
cache-key: ${{ github.ref }}
21+
- run: npm config set //npm.lisk.com/:_authToken=$NPM_TOKEN
22+
env:
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- name: Publish
25+
run: npx lerna publish --canary --preid canary --registry https://npm.lisk.com --yes

.github/workflows/code_ql.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "development", feature/*, hotfix/*, main, release/* ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "development", feature/*, hotfix/*, main, release/* ]
20+
schedule:
21+
- cron: '30 3 * * 2'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: true
34+
matrix:
35+
language: [ 'typescript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
config-file: ./.github/codeql/codeql-config.yml
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
53+
# 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
54+
# queries: security-extended,security-and-quality
55+
56+
- name: Perform CodeQL Analysis
57+
uses: github/codeql-action/analyze@v2
58+
with:
59+
category: "/language:${{matrix.language}}"

.github/workflows/dependency.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependency Review Action
2+
#
3+
# 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.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: 'Dependency Review'
8+
on: [pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
dependency-review:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Checkout Repository'
18+
uses: actions/checkout@v3
19+
- name: 'Dependency Review'
20+
uses: actions/dependency-review-action@v2

.github/workflows/pr.yaml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: 'PR'
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 15
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Install
13+
uses: ./.github/actions/prepare-install
14+
- name: Build
15+
uses: ./.github/actions/prepare-build
16+
with:
17+
cache-key: ${{ github.event.number }}
18+
19+
lint:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
needs: build
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
- run: git branch --track ${{ github.base_ref }} origin/${{ github.base_ref }}
29+
- name: Install
30+
uses: ./.github/actions/prepare-install
31+
- name: Build
32+
uses: ./.github/actions/prepare-build
33+
with:
34+
cache-key: ${{ github.event.number }}
35+
- run: yarn format
36+
- name: Check format
37+
run: |
38+
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
39+
echo "All files formatted"
40+
else
41+
echo "Running format is required"
42+
exit 1
43+
fi
44+
- run: yarn lint
45+
46+
unit-test:
47+
runs-on: ubuntu-latest
48+
timeout-minutes: 20
49+
needs: build
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v3
53+
- name: Install
54+
uses: ./.github/actions/prepare-install
55+
- name: Build
56+
uses: ./.github/actions/prepare-build
57+
with:
58+
cache-key: ${{ github.event.number }}
59+
- run: yarn test:elements
60+
- run: yarn test:framework
61+
- run: yarn test:commander
62+
63+
integration-test:
64+
runs-on: ubuntu-latest
65+
timeout-minutes: 15
66+
needs: build
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v3
70+
- name: Install
71+
uses: ./.github/actions/prepare-install
72+
- name: Build
73+
uses: ./.github/actions/prepare-build
74+
with:
75+
cache-key: ${{ github.event.number }}
76+
- run: yarn nx run-many --target=test:integration --projects=lisk-framework
77+
78+
functional-test:
79+
runs-on: ubuntu-latest
80+
timeout-minutes: 15
81+
needs: build
82+
steps:
83+
- name: Checkout
84+
uses: actions/checkout@v3
85+
- name: Install
86+
uses: ./.github/actions/prepare-install
87+
- name: Build
88+
uses: ./.github/actions/prepare-build
89+
with:
90+
cache-key: ${{ github.event.number }}
91+
- run: yarn nx run-many --target=test:debug --projects=lisk-sdk-test

.jenkins/Jenkinsfile.audit

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)