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/5.3.0' of https://github.com/LiskHQ/lisk-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Sep 28, 2023
2 parents 1ce8dd7 + 4916896 commit bb1def8
Show file tree
Hide file tree
Showing 130 changed files with 3,223 additions and 3,679 deletions.
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ Please describe what functionality is needed

Please describe why it is needed

### Acceptance Criteria

Please describe the conditions which must be met for this issue to close

### Additional Information
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_specification.md
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
22 changes: 22 additions & 0 deletions .github/actions/prepare-build/action.yml
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
14 changes: 14 additions & 0 deletions .github/actions/prepare-install/action.yml
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
4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
paths-ignore:
- ./protocol-specs
- ./scripts
- ./templates
25 changes: 25 additions & 0 deletions .github/workflows/branch.yaml
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
59 changes: 59 additions & 0 deletions .github/workflows/code_ql.yaml
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}}"
20 changes: 20 additions & 0 deletions .github/workflows/dependency.yaml
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
91 changes: 91 additions & 0 deletions .github/workflows/pr.yaml
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
13 changes: 0 additions & 13 deletions .jenkins/Jenkinsfile.audit

This file was deleted.

Loading

0 comments on commit bb1def8

Please sign in to comment.