From d761464a5d15d971e0516346439fcde7d24a369a Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Mon, 15 Aug 2022 19:20:15 +0000 Subject: [PATCH] Merge pull request #497 from UniqueNetwork/CI-42-fork-update-parachain-relay-withdata --- --- a/.docker/forking/docker-compose.tmp-fork.j2 +++ b/.docker/forking/docker-compose.tmp-fork.j2 @@ -10,6 +10,4 @@ - "FEATURE={{ FEATURE }}" - "RUNTIME={{ RUNTIME }}" - "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}" - - "MAINNET_TAG={{ MAINNET_TAG }}" - - "MAINNET_BRANCH={{ MAINNET_BRANCH }}" - "FORK_FROM={{ FORK_FROM }}" --- a/.github/workflows/fork-update-withdata.yml +++ b/.github/workflows/fork-update-withdata.yml @@ -21,39 +21,7 @@ # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - prepare-execution-marix-fork: - - name: Prepare execution matrix for fork - - runs-on: self-hosted-ci - outputs: - matrix: ${{ steps.create_matrix.outputs.matrix }} - steps: - - - name: Clean Workspace - uses: AutoModality/action-clean@v1.1.0 - - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} #Checking out head commit - - - name: Read .env file - uses: xom9ikk/dotenv@v1.0.2 - - - name: Create Execution matrix - uses: fabiocaccamo/create-matrix-action@v2 - id: create_matrix - with: - matrix: | - network {Opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}, fork_from_address {wss://eu-ws-opal.unique.network:443} - network {Quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, fork_from_address {wss://eu-ws-quartz.unique.network:443} - network {Unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}, fork_from_address {wss://eu-ws.unique.network:443} - - - fork-update-withdata: - needs: prepare-execution-marix-fork # The type of runner that the job will run on runs-on: self-hosted-ci @@ -63,7 +31,19 @@ strategy: matrix: - include: ${{fromJson(needs.prepare-execution-marix-fork.outputs.matrix)}} + include: + - network: Opal + features: opal-runtime + runtime: opal + fork_from_address: wss://eu-ws-opal.unique.network:443 + - network: Quartz + features: quartz-runtime + runtime: quartz + fork_from_address: wss://eu-ws-quartz.unique.network:443 + - network: Unique + features: unique-runtime + runtime: unique + fork_from_address: wss://eu-ws.unique.network:443 steps: - name: Skip if pull request is in Draft @@ -105,8 +85,6 @@ RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }} POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }} POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }} - MAINNET_TAG=${{ matrix.mainnet_tag }} - MAINNET_BRANCH=${{ matrix.mainnet_branch }} FEATURE=${{ matrix.features }} RUNTIME=${{ matrix.runtime }} BRANCH=${{ github.head_ref }} -- gitstuff