1212
1313jobs :
1414 # qqqq may need just a place holder set of values or some repo wide environmental values
15- solution-build :
16- name : Check Solution Builds
17- runs-on : ubuntu-latest
18- continue-on-error : ${{ inputs.runall }}
19- steps :
20- - name : See other project pipeline for Tests
21- run : echo " See other project pipeline for Tests this is a placeholder"
22-
23- # branch-name-check:
24- # name: PR Check Enforce Branch Name Convention
25- # runs-on: ubuntu-latest
26- # steps:
27- # - name: Validate Branch Name
28- # run: |
29- # #BRANCH_NAME="${GITHUB_HEAD_REF}"
30- # BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
31- # echo "Validating branch name: $BRANCH_NAME"
15+ solution-build :
16+ name : Check Solution Builds
17+ runs-on : ubuntu-latest
18+ continue-on-error : ${{ inputs.runall }}
19+ steps :
20+ - name : See other project pipeline for Tests
21+ run : echo " See other project pipeline for Tests this is a placeholder"
3222
33- # if [[ "$BRANCH_NAME" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|sample|security|config|bugfix|hotfix)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]] || [[ "$BRANCH_NAME" == "Automatic_version_update_dependabot" ]]; then
34- # echo "✅ Branch name is valid"
35- # else
36- # echo "❌ Invalid branch name: $BRANCH_NAME"
37- # echo "Branch names must follow one of the allowed prefixes:"
38- # echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
39- # exit 1
40- # fi
41- # continue-on-error: ${{ inputs.runall }}
42-
43- # commitlint:
44- # name: PR Check commitlint
45- # runs-on: ubuntu-latest
46- # steps:
47- # - uses: actions/checkout@v4
48- # with:
49- # fetch-depth: 0
50- # - uses: wagoid/commitlint-github-action@v5
51- # with:
52- # configFile: .commitlintrc.json
53- # continue-on-error: ${{ inputs.runall }}
54-
55- # Unit-Tests:
56- # name: PR Check Unit Tests
57- # runs-on: ubuntu-latest
58- # steps:
59- # - name: See other project pipeline for Tests
60- # run: echo " See other project pipeline for Tests this is a placeholder"
61- # continue-on-error: ${{ inputs.runall }}
62-
63- # E2E-Tests:
64- # name: PR Check E2E Tests
65- # runs-on: ubuntu-latest
66- # steps:
67- # - name: See other project pipeline for Tests
68- # run: echo " See other project pipeline for Tests this is a placeholder"
69- # continue-on-error: ${{ inputs.runall }}
70-
71- # Code-Coverage:
72- # name: PR Check Code Coverage
73- # runs-on: ubuntu-latest
74- # steps:
75- # - name: Code Coverage
76- # run: echo "TODO Code Coverage"
77- # continue-on-error: ${{ inputs.runall }}
78-
79-
80- branch-name-check :
81- name : Enforce Branch Name Convention
82- if : success() || failure()
83- runs-on : ubuntu-latest
84- steps :
85- - name : Validate Branch Name
86- run : |
87- #BRANCH_NAME="${GITHUB_HEAD_REF}"
88- BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
89- echo "Validating branch name: $BRANCH_NAME"
23+ branch-name-check :
24+ name : Enforce Branch Name Convention
25+ if : success() || failure()
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Validate Branch Name
29+ run : |
30+ #BRANCH_NAME="${GITHUB_HEAD_REF}"
31+ BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
32+ echo "Validating branch name: $BRANCH_NAME"
9033
91- if [[ "$BRANCH_NAME" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|sample|security|config|bugfix|hotfix)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]]; then
92- echo "✅ Branch name is valid"
93- else
94- echo "❌ Invalid branch name: $BRANCH_NAME"
95- echo "Branch names must follow one of the allowed prefixes:"
96- echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
97- exit 1
98- fi
99- continue-on-error : ${{ inputs.runall }}
34+ if [[ "$BRANCH_NAME" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|sample|security|config|bugfix|hotfix)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]]; then
35+ echo "✅ Branch name is valid"
36+ else
37+ echo "❌ Invalid branch name: $BRANCH_NAME"
38+ echo "Branch names must follow one of the allowed prefixes:"
39+ echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
40+ exit 1
41+ fi
42+ continue-on-error : ${{ inputs.runall }}
10043
10144 commitlint :
10245 runs-on : ubuntu-latest
@@ -169,4 +112,61 @@ branch-name-check:
169112 echo "❌ One or more jobs failed."
170113 exit 1
171114 fi
172- continue-on-error : false
115+ continue-on-error : false
116+
117+
118+ # branch-name-check:
119+ # name: PR Check Enforce Branch Name Convention
120+ # runs-on: ubuntu-latest
121+ # steps:
122+ # - name: Validate Branch Name
123+ # run: |
124+ # #BRANCH_NAME="${GITHUB_HEAD_REF}"
125+ # BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
126+ # echo "Validating branch name: $BRANCH_NAME"
127+
128+ # if [[ "$BRANCH_NAME" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|sample|security|config|bugfix|hotfix)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]] || [[ "$BRANCH_NAME" == "Automatic_version_update_dependabot" ]]; then
129+ # echo "✅ Branch name is valid"
130+ # else
131+ # echo "❌ Invalid branch name: $BRANCH_NAME"
132+ # echo "Branch names must follow one of the allowed prefixes:"
133+ # echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
134+ # exit 1
135+ # fi
136+ # continue-on-error: ${{ inputs.runall }}
137+
138+ # commitlint:
139+ # name: PR Check commitlint
140+ # runs-on: ubuntu-latest
141+ # steps:
142+ # - uses: actions/checkout@v4
143+ # with:
144+ # fetch-depth: 0
145+ # - uses: wagoid/commitlint-github-action@v5
146+ # with:
147+ # configFile: .commitlintrc.json
148+ # continue-on-error: ${{ inputs.runall }}
149+
150+ # Unit-Tests:
151+ # name: PR Check Unit Tests
152+ # runs-on: ubuntu-latest
153+ # steps:
154+ # - name: See other project pipeline for Tests
155+ # run: echo " See other project pipeline for Tests this is a placeholder"
156+ # continue-on-error: ${{ inputs.runall }}
157+
158+ # E2E-Tests:
159+ # name: PR Check E2E Tests
160+ # runs-on: ubuntu-latest
161+ # steps:
162+ # - name: See other project pipeline for Tests
163+ # run: echo " See other project pipeline for Tests this is a placeholder"
164+ # continue-on-error: ${{ inputs.runall }}
165+
166+ # Code-Coverage:
167+ # name: PR Check Code Coverage
168+ # runs-on: ubuntu-latest
169+ # steps:
170+ # - name: Code Coverage
171+ # run: echo "TODO Code Coverage"
172+ # continue-on-error: ${{ inputs.runall }}
0 commit comments