git.delta.rocks / unique-network / refs/commits / 2b9417a2a3f5

difftreelog

upgrade nodejs version & fix error

Konstantin Astakhov2023-12-18parent: #430b020.patch.diff
in: master

14 files changed

modified.github/workflows/codestyle.ymldiffbeforeafterboth
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -40,7 +40,7 @@
           ref: ${{ github.head_ref }}            
       - uses: actions/setup-node@v3.5.1
         with:
-          node-version: 18
+          node-version:  20
       - name: Install modules
         run: cd js-packages && yarn
       - name: Run ESLint
modified.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
modified.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
modified.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
modified.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
modified.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: |
modified.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
modified.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
modified.github/workflows/polkadot-types.ymldiffbeforeafterboth
after · .github/workflows/polkadot-types.yml
1# Integration test in --dev mode2# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586411104/Integration+tests3name: Polkadot types45# Triger: only call from main workflow(re-usable workflows)6on:7  workflow_call:8  # Allows you to run this workflow manually from the Actions tab9  workflow_dispatch:1011# on:12#   pull_request:13#     branches: [ 'develop' ]14#     types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]151617# A workflow run is made up of one or more jobs that can run sequentially or in parallel18jobs:19  20  polkadot_generate_types:21    # The type of runner that the job will run on22    runs-on: [self-hosted-ci,medium]23    timeout-minutes: 13802425    name: ${{ matrix.network }}2627    continue-on-error: true         #Do not stop testing of matrix runs failed.  As it decided during PR review - it required 50/50& Let's check it with false.2829    strategy:30      matrix:31        include:32          - network: "sapphire"33            usage: ""34          - network: "opal"35            usage: ""36          - network: "quartz"37            usage: ""38          - network: "unique"39            usage: ""4041    steps:4243      - name: Clean Workspace44        uses: AutoModality/action-clean@v1.1.04546      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it47      - uses: actions/checkout@v348        with:49          ref: ${{ github.head_ref }}  #Checking out head commit5051      - name: Read .env file52        uses: xom9ikk/dotenv@v25354      - name: Generate ENV related extend file for docker-compose55        uses: cuchi/jinja2-action@v1.2.056        with:57          template: .docker/docker-compose.tmp-dev.j258          output_file: .docker/docker-compose.${{ matrix.network }}.yml59          variables: |60            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}61            NETWORK=${{ matrix.network }}62   63      - name: Show build configuration64        run: cat .docker/docker-compose.${{ matrix.network }}.yml6566      - name: Build the stack67        run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans6869      - uses: actions/setup-node@v3.5.170        with:71          node-version:  207273      # - name: Install jq74      #   run: sudo apt install jq -y7576      - name: Run generate_types_package script77        working-directory: js-packages78        run: |79          yarn install80          ./scripts/wait_for_first_block.sh81          git config --global user.name "Unique"82          git config --global user.email github-actions@usetech.com          83          ./scripts/generate_types/generate_types_package.sh --release ${{ matrix.usage }} --push84        env:85          RPC_URL: http://127.0.0.1:9944/8687      - name: Stop running containers88        if: always()                   # run this step always89        run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" down9091      - name: Remove builder cache92        if: always()                   # run this step always93        run: |94          docker builder prune -f -a95          docker system prune -f96          docker image prune -f -a
modified.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
modified.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
modified.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
modified.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
modifiedjs-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'",