--- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -7,24 +7,48 @@ # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: + prepare-execution-marix: + + name: Prepare execution matrix + + 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@v2 + + - name: Create Execution matrix + uses: CertainLach/create-matrix-action@v3 + id: create_matrix + with: + matrix: | + network {opal}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}} + network {quartz}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}} + network {unique}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}} + try-runtime: + needs: prepare-execution-marix + # The type of runner that the job will run on - runs-on: self-hosted-ci - - name: ${{ matrix.network }}-try-runtime - + runs-on: [self-hosted-ci] 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. + name: ${{ matrix.network }}-try-runtime strategy: matrix: - include: - - network: opal - replica_from_address: wss://eu-ws-opal.unique.network:443 - - network: quartz - replica_from_address: wss://eu-ws-quartz.unique.network:443 - - network: unique - replica_from_address: wss://eu-ws.unique.network:443 - + include: ${{fromJson(needs.execution-marix.outputs.matrix)}} + steps: - name: Clean Workspace