-
Notifications
You must be signed in to change notification settings - Fork 15
72 lines (58 loc) · 3.66 KB
/
ci-develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586869783/CI+Develop
# Workflow which controls starts nested workflows.
name: develop
# Triger: PR at 'develop' branch with following types of events.
on:
pull_request:
branches: [ 'develop' ]
types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]
#Concurency group for control execution queue over github runners.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
# List of a jobs included into Workflow.
jobs:
yarn-dev:
if: github.event.pull_request.draft == false # Conditional check for draft per job.
uses: ./.github/workflows/yarn-dev.yml
secrets: inherit
unit-test:
if: github.event.pull_request.draft == false # Conditional check for draft per job.
uses: ./.github/workflows/unit-test.yml
secrets: inherit
canary:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-canary')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/canary.yml
secrets: inherit # pass all secrets from initial workflow to nested
xcm:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-xcm')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/xcm.yml
secrets: inherit # pass all secrets from initial workflow to nested
collator-selection:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-collator-selection')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/collator-selection.yml
secrets: inherit
forkless-update-data:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/forkless-update-data.yml
secrets: inherit # pass all secrets from initial workflow to nested
forkless-update-no-data:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/forkless-update-nodata.yml
secrets: inherit # pass all secrets from initial workflow to nested
try-runtime:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/try-runtime.yml
secrets: inherit # pass all secrets from initial workflow to nested
node-only-update:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-node-only-update')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/node-only-update.yml
secrets: inherit
governance:
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-gov')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/governance.yml
secrets: inherit # pass all secrets from initial workflow to nested
codestyle:
if: github.event.pull_request.draft == false # Conditional check for draft per job.
uses: ./.github/workflows/codestyle.yml
secrets: inherit