difftreelog
upgrade nodejs version & fix error
in: master
14 files changed
.github/workflows/codestyle.ymldiffbeforeafterboth1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586837012/Code+style+testing2# Nested workflow for checks related to formatting Rust code 34name: codestyle56# Triger: only call from main workflow(re-usable workflows)7on:8 workflow_call:910jobs:11 rustfmt:12 runs-on: [ self-hosted-ci ]13 steps:14 - name: Clean Workspace15 uses: AutoModality/action-clean@v1.1.016 - uses: actions/checkout@v3.1.017 with:18 ref: ${{ github.head_ref }} 19 - name: Read .env file20 uses: xom9ikk/dotenv@v2 21 - name: Install toolchain version from .env22 uses: dtolnay/rust-toolchain@master23 with:24 toolchain: ${{ env.RUST_TOOLCHAIN }}25 targets: wasm32-unknown-unknown26 components: rustfmt, clippy27 - name: Run cargo fmt28 run: cargo fmt -- --check # In that mode it returns only exit code.29 - name: Cargo fmt state30 if: success()31 run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."3233 yarn_eslint:34 runs-on: [ self-hosted-ci ]35 steps:36 - name: Clean Workspace37 uses: AutoModality/action-clean@v1.1.038 - uses: actions/checkout@v3.1.039 with:40 ref: ${{ github.head_ref }} 41 - uses: actions/setup-node@v3.5.142 with:43 node-version: 1844 - name: Install modules45 run: cd js-packages && yarn46 - name: Run ESLint47 # run: cd js-packages && yarn lint --max-warnings=048 run: cd js-packages && yarn lint4950 clippy:51 runs-on: [ self-hosted-ci ]52 steps:53 - uses: actions/checkout@v3.1.054 - name: Install substrate dependencies55 run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler56 - name: Read .env file57 uses: xom9ikk/dotenv@v258 - name: Install toolchain version from .env59 uses: dtolnay/rust-toolchain@master60 with:61 toolchain: ${{ env.RUST_TOOLCHAIN }}62 targets: wasm32-unknown-unknown63 components: rustfmt, clippy64 - name: Run cargo check65 run: cargo clippy --features=quartz-runtime,unique-runtime,try-runtime,runtime-benchmarks --tests -- -Dwarnings66 env:67 SKIP_WASM_BUILD: '1'.github/workflows/collator-selection.ymldiffbeforeafterboth--- a/.github/workflows/collator-selection.yml
+++ b/.github/workflows/collator-selection.yml
@@ -146,7 +146,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/forkless-update-data.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-data.yml
+++ b/.github/workflows/forkless-update-data.yml
@@ -122,7 +122,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -137,7 +137,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/governance.ymldiffbeforeafterboth--- a/.github/workflows/governance.yml
+++ b/.github/workflows/governance.yml
@@ -79,7 +79,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Run tests
working-directory: js-packages/tests
.github/workflows/make-bench.ymldiffbeforeafterboth--- a/.github/workflows/make-bench.yml
+++ b/.github/workflows/make-bench.yml
@@ -36,7 +36,7 @@
- uses: actions/setup-node@v3
with:
- node-version: 18
+ node-version: 20
- name: RUN benchmarking
run: |
.github/workflows/market-test.ymldiffbeforeafterboth--- a/.github/workflows/market-test.yml
+++ b/.github/workflows/market-test.yml
@@ -103,7 +103,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Setup TypeScript
working-directory: qa-tests
.github/workflows/node-only-update.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update.yml
+++ b/.github/workflows/node-only-update.yml
@@ -143,7 +143,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/polkadot-types.ymldiffbeforeafterboth--- a/.github/workflows/polkadot-types.yml
+++ b/.github/workflows/polkadot-types.yml
@@ -68,7 +68,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
# - name: Install jq
# run: sudo apt install jq -y
.github/workflows/try-runtime.ymldiffbeforeafterboth--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -175,7 +175,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
.github/workflows/xcm.ymldiffbeforeafterboth--- a/.github/workflows/xcm.yml
+++ b/.github/workflows/xcm.yml
@@ -327,7 +327,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/xnft.ymldiffbeforeafterboth--- a/.github/workflows/xnft.yml
+++ b/.github/workflows/xnft.yml
@@ -159,7 +159,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Clone xnft-tests
run: git clone https://github.com/UniqueNetwork/xnft-tests.git
.github/workflows/yarn-dev.ymldiffbeforeafterboth--- a/.github/workflows/yarn-dev.yml
+++ b/.github/workflows/yarn-dev.yml
@@ -59,7 +59,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 18
+ node-version: 20
- name: Run tests
working-directory: js-packages/tests
js-packages/tests/package.jsondiffbeforeafterboth--- a/js-packages/tests/package.json
+++ b/js-packages/tests/package.json
@@ -13,9 +13,9 @@
"mocha": "^10.1.0"
},
"scripts": {
- "setup": "yarn ts-node --esm ./util/globalSetup.ts",
- "setIdentities": "yarn ts-node --esm ./util/identitySetter.ts",
- "checkRelayIdentities": "yarn ts-node --esm ./util/relayIdentitiesChecker.ts",
+ "setup": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ./util/globalSetup.ts",
+ "setIdentities": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ./util/identitySetter.ts",
+ "checkRelayIdentities": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ./util/relayIdentitiesChecker.ts",
"_test": "yarn setup && yarn mocha --timeout 9999999 --loader=ts-node/esm.mjs",
"_testParallel": "yarn setup && yarn mocha --timeout 9999999 --parallel --loader=ts-node/esm.mjs",
"test": "yarn _test './**/*.*test.ts'",