git.delta.rocks / unique-network / refs/commits / 5b4393fae750

difftreelog

Splited single file into two files targeted to specified branch.

Alexander Aksenov2022-08-02parent: #de851a4.patch.diff
in: master

2 files changed

added.github/workflows/build-test-master.ymldiffbeforeafterboth
--- /dev/null
+++ b/.github/workflows/build-test-master.yml
@@ -0,0 +1,126 @@
+name: Build & Test Master
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the master branch
+  #push:
+  #  branches: [ develop ]
+  pull_request:
+    branches:
+      - master
+    types:
+      - opened
+      - edited
+      - reopened
+  # pull_request:
+ #   branches: [ develop ]
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+
+#Define Workflow variables
+env:
+  ubuntu_version: focal
+  chains_release_dir: /opt/runner/chains_release
+  opal_chain_workdir: ./src_opal_chain
+  quartz_chain_workdir: ./src_quartz_chain
+  unique_chain_workdir: ./src_unique_chain
+  RUST_TOOLCHAIN: nightly-2022-05-11
+  REPO_URL: ${{ github.server_url }}/${{ github.repository }}
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+  pre-requisites:
+    # The type of runner that the job will run on
+    runs-on: self-hosted-ci
+
+    steps:
+      #runs ssh connection
+      - name: Install dependencies
+        run: |
+          sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make cmake
+          sudo apt autoremove
+          curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
+          . $HOME/.cargo/env && cargo install --locked --git https://github.com/chevdor/subwasm
+          rustup toolchain install ${{ env.RUST_TOOLCHAIN }}
+          rustup default ${{ env.RUST_TOOLCHAIN }}
+          rustup target add wasm32-unknown-unknown --toolchain ${{ env.RUST_TOOLCHAIN }}
+
+
+  build:
+    # The type of runner that the job will run on
+    runs-on: self-hosted-ci
+
+    needs: pre-requisites
+    name: Build Container, Spin it Up an test
+
+    continue-on-error: true         #Do not stop testing of matrix runs failed.
+
+    strategy:
+      matrix:
+        include:
+          - network: "Opal"
+            features: " "
+          - network: "Quartz"
+            features: "--features=quartz-runtime"
+          - network: "Unique"
+            features: "--features=unique-runtime"
+
+    steps:
+      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+      - uses: actions/checkout@v3
+
+      - name: Generate ENV related extend file for docker-compose
+        uses: cuchi/jinja2-action@v1.2.0
+        with:
+          template: .docker/docker-compose.tmp.j2
+          output_file: .docker/docker-compose.${{ matrix.network }}.yml
+          variables: |
+            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
+            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
+            FEATURE=${{ matrix.features }}
+            BRANCH=${{ github.head_ref }}
+
+      - name: Show temporary file
+        run: cat .docker/docker-compose.${{ matrix.network }}.yml
+
+      - name: Build the stack
+        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build
+
+#      - name: "Build the Docker image with Feature: ${{ env.features }}"
+#        run: docker build -t build-${{ github.head_ref }} --file .docker/Dockerfile-chain-dev --build-arg REPO_URL=${{ github.server_url }}/${{ github.repository }}.git --build-arg RUST_TOOLCHAIN=${{ env.actual_toolchain }} --build-arg FEATURE="${{ env.features }}" --build-arg BRANCH=${{ github.head_ref }} --no-cache .
+
+      - name: Wait
+        run: sleep 420s
+
+      - name: Install node
+        uses: actions/setup-node@v1
+        with:
+          node-version: 14.x
+
+      - name: Install dependencies
+        run: |
+          cd tests
+          yarn install
+          yarn add mochawesome
+          yarn --pure-lockfile
+
+      - name: Run tests
+        run: |
+          cd tests
+          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
+        env:
+          RPC_URL: http://127.0.0.1:9933/
+
+      - name: Test Report
+        uses: phoenix-actions/test-reporting@v8
+        id: test-report               # Set ID reference for step
+        if: success() || failure()    # run this step even if previous step failed
+        with:
+          name: Tests ${{ matrix.network }}            # Name of the check run which will be created
+          path: tests/mochawesome-report/test-*.json    # Path to test results
+          reporter: mochawesome-json
+          fail-on-error: 'false'
+
+      - name: Stop running containers
+        if: always()                   # run this step always
+        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
before · .github/workflows/node_build_test.yml
1name: Build & test23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6  #push:7  #  branches: [ develop ]8  pull_request:9    branches:10      - develop11    types:12      - opened13      - edited14      - reopened15  # pull_request:16 #   branches: [ develop ]17  # Allows you to run this workflow manually from the Actions tab18  workflow_dispatch:1920#Define Workflow variables21env:22  ubuntu_version: focal23  chains_release_dir: /opt/runner/chains_release24  opal_chain_workdir: ./src_opal_chain25  quartz_chain_workdir: ./src_quartz_chain26  unique_chain_workdir: ./src_unique_chain27  RUST_TOOLCHAIN: nightly-2022-05-1128  REPO_URL: ${{ github.server_url }}/${{ github.repository }}2930# A workflow run is made up of one or more jobs that can run sequentially or in parallel31jobs:32  pre-requisites:33    # The type of runner that the job will run on34    runs-on: self-hosted-ci3536    steps:37      #runs ssh connection38      - name: Install dependencies39        run: |40          sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make cmake41          sudo apt autoremove42          curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none43          . $HOME/.cargo/env && cargo install --locked --git https://github.com/chevdor/subwasm44          rustup toolchain install ${{ env.RUST_TOOLCHAIN }}45          rustup default ${{ env.RUST_TOOLCHAIN }}46          rustup target add wasm32-unknown-unknown --toolchain ${{ env.RUST_TOOLCHAIN }}474849  build:50    # The type of runner that the job will run on51    runs-on: self-hosted-ci5253    needs: pre-requisites54    name: Build Container, Spin it Up an test5556    continue-on-error: true         #Do not stop testing of matrix runs failed.5758    strategy:59      matrix:60        include:61          - network: "Opal"62            features: " "63          - network: "Quartz"64            features: "--features=quartz-runtime"65          - network: "Unique"66            features: "--features=unique-runtime"6768    steps:69      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it70      - uses: actions/checkout@v37172      - name: Generate ENV related extend file for docker-compose73        uses: cuchi/jinja2-action@v1.2.074        with:75          template: .docker/docker-compose.tmp.j276          output_file: .docker/docker-compose.${{ matrix.network }}.yml77          variables: |78            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git79            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}80            FEATURE=${{ matrix.features }}81            BRANCH=${{ github.head_ref }}8283      - name: Show temporary file84        run: cat .docker/docker-compose.${{ matrix.network }}.yml8586      - name: Build the stack87        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build8889#      - name: "Build the Docker image with Feature: ${{ env.features }}"90#        run: docker build -t build-${{ github.head_ref }} --file .docker/Dockerfile-chain-dev --build-arg REPO_URL=${{ github.server_url }}/${{ github.repository }}.git --build-arg RUST_TOOLCHAIN=${{ env.actual_toolchain }} --build-arg FEATURE="${{ env.features }}" --build-arg BRANCH=${{ github.head_ref }} --no-cache .9192      - name: Wait93        run: sleep 420s9495      - name: Install node96        uses: actions/setup-node@v197        with:98          node-version: 14.x99100      - name: Install dependencies101        run: |102          cd tests103          yarn install104          yarn add mochawesome105          yarn --pure-lockfile106107      - name: Run tests108        run: |109          cd tests110          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}111        env:112          RPC_URL: http://127.0.0.1:9933/113114      - name: Test Report115        uses: phoenix-actions/test-reporting@v8116        id: test-report               # Set ID reference for step117        if: success() || failure()    # run this step even if previous step failed118        with:119          name: Tests ${{ matrix.network }}            # Name of the check run which will be created120          path: tests/mochawesome-report/test-*.json    # Path to test results121          reporter: mochawesome-json122          fail-on-error: 'false'123124      - name: Stop running containers125        if: always()                   # run this step always126        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down127128129name: Build & test Master130131# Controls when the action will run.132on:133 # Triggers the workflow on push or pull request events but only for the master branch134  #push:135  #  branches: [ develop ]136  pull_request:137    branches:138      - master139    types:140      - opened141      - edited142      - reopened143  # pull_request:144 #   branches: [ develop ]145  # Allows you to run this workflow manually from the Actions tab146  workflow_dispatch:147148#Define Workflow variables149env:150  ubuntu_version: focal151  chains_release_dir: /opt/runner/chains_release152  opal_chain_workdir: ./src_opal_chain153  quartz_chain_workdir: ./src_quartz_chain154  unique_chain_workdir: ./src_unique_chain155  RUST_TOOLCHAIN: nightly-2022-05-11156  REPO_URL: ${{ github.server_url }}/${{ github.repository }}157158# A workflow run is made up of one or more jobs that can run sequentially or in parallel159jobs:160  pre-requisites:161    # The type of runner that the job will run on162    runs-on: self-hosted-ci163164    steps:165      #runs ssh connection166      - name: Install dependencies167        run: |168          sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make cmake169          sudo apt autoremove170          curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none171          . $HOME/.cargo/env && cargo install --locked --git https://github.com/chevdor/subwasm172          rustup toolchain install ${{ env.RUST_TOOLCHAIN }}173          rustup default ${{ env.RUST_TOOLCHAIN }}174          rustup target add wasm32-unknown-unknown --toolchain ${{ env.RUST_TOOLCHAIN }}175176177  build:178    # The type of runner that the job will run on179    runs-on: self-hosted-ci180181    needs: pre-requisites182    name: Build Container, Spin it Up an test183184    continue-on-error: true         #Do not stop testing of matrix runs failed.185186    strategy:187      matrix:188        include:189          - network: "Opal"190            features: " "191          - network: "Quartz"192            features: "--features=quartz-runtime"193          - network: "Unique"194            features: "--features=unique-runtime"195196    steps:197      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it198      - uses: actions/checkout@v3199200      - name: Generate ENV related extend file for docker-compose201        uses: cuchi/jinja2-action@v1.2.0202        with:203          template: .docker/docker-compose.tmp.j2204          output_file: .docker/docker-compose.${{ matrix.network }}.yml205          variables: |206            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git207            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}208            FEATURE=${{ matrix.features }}209            BRANCH=${{ github.head_ref }}210211      - name: Show temporary file212        run: cat .docker/docker-compose.${{ matrix.network }}.yml213214      - name: Build the stack215        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build216217#      - name: "Build the Docker image with Feature: ${{ env.features }}"218#        run: docker build -t build-${{ github.head_ref }} --file .docker/Dockerfile-chain-dev --build-arg REPO_URL=${{ github.server_url }}/${{ github.repository }}.git --build-arg RUST_TOOLCHAIN=${{ env.actual_toolchain }} --build-arg FEATURE="${{ env.features }}" --build-arg BRANCH=${{ github.head_ref }} --no-cache .219220      - name: Wait221        run: sleep 420s222223      - name: Install node224        uses: actions/setup-node@v1225        with:226          node-version: 14.x227228      - name: Install dependencies229        run: |230          cd tests231          yarn install232          yarn add mochawesome233          yarn --pure-lockfile234235      - name: Run tests236        run: |237          cd tests238          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}239        env:240          RPC_URL: http://127.0.0.1:9933/241242      - name: Test Report243        uses: phoenix-actions/test-reporting@v8244        id: test-report               # Set ID reference for step245        if: success() || failure()    # run this step even if previous step failed246        with:247          name: Tests ${{ matrix.network }}            # Name of the check run which will be created248          path: tests/mochawesome-report/test-*.json    # Path to test results249          reporter: mochawesome-json250          fail-on-error: 'false'251252      - name: Stop running containers253        if: always()                   # run this step always254        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
after · .github/workflows/node_build_test.yml
1name: Build & test23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6  #push:7  #  branches: [ develop ]8  pull_request:9    branches:10      - develop11    types:12      - opened13      - edited14      - reopened15  # pull_request:16 #   branches: [ develop ]17  # Allows you to run this workflow manually from the Actions tab18  workflow_dispatch:1920#Define Workflow variables21env:22  ubuntu_version: focal23  chains_release_dir: /opt/runner/chains_release24  opal_chain_workdir: ./src_opal_chain25  quartz_chain_workdir: ./src_quartz_chain26  unique_chain_workdir: ./src_unique_chain27  RUST_TOOLCHAIN: nightly-2022-05-1128  REPO_URL: ${{ github.server_url }}/${{ github.repository }}2930# A workflow run is made up of one or more jobs that can run sequentially or in parallel31jobs:32  pre-requisites:33    # The type of runner that the job will run on34    runs-on: self-hosted-ci3536    steps:37      #runs ssh connection38      - name: Install dependencies39        run: |40          sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make cmake41          sudo apt autoremove42          curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none43          . $HOME/.cargo/env && cargo install --locked --git https://github.com/chevdor/subwasm44          rustup toolchain install ${{ env.RUST_TOOLCHAIN }}45          rustup default ${{ env.RUST_TOOLCHAIN }}46          rustup target add wasm32-unknown-unknown --toolchain ${{ env.RUST_TOOLCHAIN }}474849  build:50    # The type of runner that the job will run on51    runs-on: self-hosted-ci5253    needs: pre-requisites54    name: Build Container, Spin it Up an test5556    continue-on-error: true         #Do not stop testing of matrix runs failed.5758    strategy:59      matrix:60        include:61          - network: "Opal"62            features: " "63          - network: "Quartz"64            features: "--features=quartz-runtime"65          - network: "Unique"66            features: "--features=unique-runtime"6768    steps:69      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it70      - uses: actions/checkout@v37172      - name: Generate ENV related extend file for docker-compose73        uses: cuchi/jinja2-action@v1.2.074        with:75          template: .docker/docker-compose.tmp.j276          output_file: .docker/docker-compose.${{ matrix.network }}.yml77          variables: |78            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git79            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}80            FEATURE=${{ matrix.features }}81            BRANCH=${{ github.head_ref }}8283      - name: Show temporary file84        run: cat .docker/docker-compose.${{ matrix.network }}.yml8586      - name: Build the stack87        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build8889#      - name: "Build the Docker image with Feature: ${{ env.features }}"90#        run: docker build -t build-${{ github.head_ref }} --file .docker/Dockerfile-chain-dev --build-arg REPO_URL=${{ github.server_url }}/${{ github.repository }}.git --build-arg RUST_TOOLCHAIN=${{ env.actual_toolchain }} --build-arg FEATURE="${{ env.features }}" --build-arg BRANCH=${{ github.head_ref }} --no-cache .9192      - name: Wait93        run: sleep 420s9495      - name: Install node96        uses: actions/setup-node@v197        with:98          node-version: 14.x99100      - name: Install dependencies101        run: |102          cd tests103          yarn install104          yarn add mochawesome105          yarn --pure-lockfile106107      - name: Run tests108        run: |109          cd tests110          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}111        env:112          RPC_URL: http://127.0.0.1:9933/113114      - name: Test Report115        uses: phoenix-actions/test-reporting@v8116        id: test-report               # Set ID reference for step117        if: success() || failure()    # run this step even if previous step failed118        with:119          name: Tests ${{ matrix.network }}            # Name of the check run which will be created120          path: tests/mochawesome-report/test-*.json    # Path to test results121          reporter: mochawesome-json122          fail-on-error: 'false'123124      - name: Stop running containers125        if: always()                   # run this step always126        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down