git.delta.rocks / unique-network / refs/commits / e857cec6d160

difftreelog

create execution-matrix job for try-runtime workflows

Konstantin Astakhov2022-11-02parent: #4ff3edf.patch.diff
in: master

1 file changed

modified.github/workflows/try-runtime.ymldiffbeforeafterboth
77
8# A workflow run is made up of one or more jobs that can run sequentially or in parallel8# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9jobs:9jobs:
10 prepare-execution-marix:
11
12 name: Prepare execution matrix
13
14 runs-on: self-hosted-ci
15 outputs:
16 matrix: ${{ steps.create_matrix.outputs.matrix }}
17
18 steps:
19
20 - name: Clean Workspace
21 uses: AutoModality/action-clean@v1.1.0
22
23 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24 - uses: actions/checkout@v3
25 with:
26 ref: ${{ github.head_ref }} #Checking out head commit
27
28 - name: Read .env file
29 uses: xom9ikk/dotenv@v2
30
31 - name: Create Execution matrix
32 uses: CertainLach/create-matrix-action@v3
33 id: create_matrix
34 with:
35 matrix: |
36 network {opal}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}
37 network {quartz}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}
38 network {unique}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}
39
10 try-runtime:40 try-runtime:
41 needs: prepare-execution-marix
42
11 # The type of runner that the job will run on43 # The type of runner that the job will run on
12 runs-on: self-hosted-ci44 runs-on: [self-hosted-ci]
13
14 name: ${{ matrix.network }}-try-runtime
15
16 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.45 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.
1746
47 name: ${{ matrix.network }}-try-runtime
18 strategy:48 strategy:
19 matrix:49 matrix:
20 include:50 include: ${{fromJson(needs.execution-marix.outputs.matrix)}}
21 - network: opal51
22 replica_from_address: wss://eu-ws-opal.unique.network:443
23 - network: quartz
24 replica_from_address: wss://eu-ws-quartz.unique.network:443
25 - network: unique
26 replica_from_address: wss://eu-ws.unique.network:443
27
28 steps:52 steps:
2953