git.delta.rocks / unique-network / refs/commits / 4c8938fe21d9

difftreelog

matrix generation was replaced by static matrix.

Alexander Aksenov2022-08-15parent: #6a7d5b1.patch.diff
in: master

1 file changed

modified.github/workflows/try-runtime.ymldiffbeforeafterboth
22# A workflow run is made up of one or more jobs that can run sequentially or in parallel22# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23jobs:23jobs:
24
25 prepare-execution-marix-try-runtime:
26
27 name: Prepare execution matrix for fork
28
29 runs-on: self-hosted-ci
30 outputs:
31 matrix: ${{ steps.create_matrix.outputs.matrix }}
32 steps:
33 - name: Skip if pull request is in Draft
34 # `if: github.event.pull_request.draft == true` should be kept here, at
35 # the step level, rather than at the job level. The latter is not
36 # recommended because when the PR is moved from "Draft" to "Ready to
37 # review" the workflow will immediately be passing (since it was skipped),
38 # even though it hasn't actually ran, since it takes a few seconds for
39 # the workflow to start. This is also disclosed in:
40 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
41 # That scenario would open an opportunity for the check to be bypassed:
42 # 1. Get your PR approved
43 # 2. Move it to Draft
44 # 3. Push whatever commits you want
45 # 4. Move it to "Ready for review"; now the workflow is passing (it was
46 # skipped) and "Check reviews" is also passing (it won't be updated
47 # until the workflow is finished)
48 if: github.event.pull_request.draft == true
49 run: exit 1
50
51 - name: Clean Workspace
52 uses: AutoModality/action-clean@v1.1.0
53
54 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
55 - uses: actions/checkout@v3
56 with:
57 ref: ${{ github.head_ref }} #Checking out head commit
58
59 - name: Read .env file
60 uses: xom9ikk/dotenv@v1.0.2
61
62 - name: Create Execution matrix
63 uses: fabiocaccamo/create-matrix-action@v2
64 id: create_matrix
65 with:
66 matrix: |
67 network {Opal}, features {opal-runtime}, fork_from_address {'wss://eu-ws-opal.unique.network:443'}
68 network {Quartz}, features {quartz-runtime}, fork_from_address {'wss://eu-ws-quartz.unique.network:443'}
69 network {Unique}, features {unique-runtime}, fork_from_address {'wss://eu-ws.unique.network:443'}
70
71
72
73 fork-update-withdata:24 fork-update-withdata:
74 needs: prepare-execution-marix-try-runtime
75 # The type of runner that the job will run on25 # The type of runner that the job will run on
76 runs-on: self-hosted-ci26 runs-on: self-hosted-ci
7727
8131
82 strategy:32 strategy:
83 matrix:33 matrix:
84 include: ${{fromJson(needs.prepare-execution-marix-try-runtime.outputs.matrix)}}34 include:
35 - network: Opal
36 features: try-runtime,opal-runtime
37 fork_from_address: wss://eu-ws-opal.unique.network:443
38 - network: Quartz
39 features: try-runtime,quartz-runtime
40 fork_from_address: wss://eu-ws-quartz.unique.network:443
41 - network: Unique
42 features: try-runtime,unique-runtime
43 fork_from_address: wss://eu-ws.unique.network:443
8544
86 steps:45 steps:
46# - name: Skip if pull request is in Draft
47 # `if: github.event.pull_request.draft == true` should be kept here, at
48 # the step level, rather than at the job level. The latter is not
49 # recommended because when the PR is moved from "Draft" to "Ready to
50 # review" the workflow will immediately be passing (since it was skipped),
51 # even though it hasn't actually ran, since it takes a few seconds for
52 # the workflow to start. This is also disclosed in:
53 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
54 # That scenario would open an opportunity for the check to be bypassed:
55 # 1. Get your PR approved
56 # 2. Move it to Draft
57 # 3. Push whatever commits you want
58 # 4. Move it to "Ready for review"; now the workflow is passing (it was
59 # skipped) and "Check reviews" is also passing (it won't be updated
60 # until the workflow is finished)
61# if: github.event.pull_request.draft == true
62# run: exit 1
63
8764
88 - name: Clean Workspace65 - name: Clean Workspace