-
Notifications
You must be signed in to change notification settings - Fork 61
129 lines (116 loc) · 5.23 KB
/
hierarchy.yml
File metadata and controls
129 lines (116 loc) · 5.23 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Hierarchy
on:
push:
branches:
- "develop"
- "devnet"
- "testnet"
- "mainnet"
- "releases/iota-*-release"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
diff:
runs-on: [ubuntu-latest]
concurrency:
group: diff-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
if: (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]'))
outputs:
isRust: ${{ steps.diff.outputs.isRust }}
isRustWorkspaceConfig: ${{ steps.diff.outputs.isRustWorkspaceConfig }}
isRustExample: ${{ steps.diff.outputs.isRustExample }}
isRpc: ${{ steps.diff.outputs.isRpc }}
isPgIntegration: ${{ steps.diff.outputs.isPgIntegration }}
isMoveExampleUsedByOthers: ${{ steps.diff.outputs.isMoveExampleUsedByOthers }}
isDoc: ${{ steps.diff.outputs.isDoc }}
isReleaseNotesEligible: ${{ steps.diff.outputs.isReleaseNotesEligible }}
isExternalCrates: ${{ steps.diff.outputs.isExternalCrates }}
isStarfishSynchronization: ${{ steps.diff.outputs.isStarfishSynchronization }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Detect Changes (diff)
uses: "./.github/actions/diffs"
id: diff
release-notes-check:
concurrency:
group: release-notes-check-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
if: github.event_name == 'pull_request'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: |
cd scripts/release_notes
./run.sh check-pr ${{ github.event.pull_request.number }}
dprint-format:
runs-on: [self-hosted-x64]
concurrency:
group: dprint-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
if: (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]'))
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Check dprint formatting
run: dprint check
typos:
if: (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]'))
uses: ./.github/workflows/_typos.yml
license-check:
name: license-check
concurrency:
group: license-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
needs: diff
if: (!cancelled() && !failure() && needs.diff.outputs.isRust == 'true' && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
runs-on: [self-hosted-x64]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run license check
run: cargo ci-license
docusaurus:
needs: diff
if: (!cancelled() && !failure() && needs.diff.outputs.isDoc == 'true' && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
uses: ./.github/workflows/_docusaurus.yml
docs-lint:
needs: diff
if: (!cancelled() && !failure() && needs.diff.outputs.isDoc == 'true' && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
uses: ./.github/workflows/_docs_lint.yml
rust:
needs:
- diff
- dprint-format
- license-check
- typos
if: (!cancelled() && !failure() && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
uses: ./.github/workflows/_rust.yml
secrets: inherit
with:
isRust: ${{ needs.diff.outputs.isRust == 'true' }}
isRustWorkspaceConfig: ${{ needs.diff.outputs.isRustWorkspaceConfig == 'true' }}
isRustExample: ${{ needs.diff.outputs.isRustExample == 'true' }}
isPgIntegration: ${{ needs.diff.outputs.isPgIntegration == 'true' }}
isMoveExampleUsedByOthers: ${{ needs.diff.outputs.isMoveExampleUsedByOthers == 'true' }}
move-ide:
needs:
- diff
- dprint-format
- license-check
- typos
if: (!cancelled() && !failure() && needs.diff.outputs.isExternalCrates == 'true' && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
uses: ./.github/workflows/_move_ide.yml
split-cluster:
needs:
- diff
- dprint-format
- license-check
- typos
- rust
if: (!cancelled() && !failure() && needs.diff.outputs.isRust == 'true' && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
uses: ./.github/workflows/_split_cluster.yml
split-cluster-sync-check:
needs:
- diff
- rust
if: (!cancelled() && !failure() && needs.diff.outputs.isStarfishSynchronization == 'true' && (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]')))
uses: ./.github/workflows/_split_cluster_sync_check.yml