Skip to content

Commit a44cc3f

Browse files
wphillipmoorewphillipmoore-claude
andcommitted
chore(ci): adopt CI/CD workflow naming convention (#383)
Co-Authored-By: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent eaff40d commit a44cc3f

4 files changed

Lines changed: 66 additions & 73 deletions

File tree

.github/workflows/cd.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# https://github.com/wphillipmoore/standard-actions/blob/develop/.github/workflows/README.md
2+
name: CD
3+
4+
on:
5+
push:
6+
branches: [develop, main]
7+
workflow_dispatch:
8+
9+
permissions:
10+
attestations: write
11+
contents: write
12+
id-token: write
13+
pull-requests: write
14+
15+
jobs:
16+
docs:
17+
uses: wphillipmoore/standard-actions/.github/workflows/cd-docs.yml@v1.5
18+
with:
19+
pre-deploy-command: >-
20+
git clone --depth 1 --branch develop
21+
https://github.com/wphillipmoore/mq-rest-admin-common.git
22+
.mq-rest-admin-common
23+
permissions:
24+
contents: write
25+
26+
release:
27+
if: github.ref == 'refs/heads/main'
28+
uses: wphillipmoore/standard-actions/.github/workflows/cd-release.yml@v1.5
29+
with:
30+
language: java
31+
container-tag: "17"
32+
registry-publish: true
33+
secrets: inherit

.github/workflows/ci.yml

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://github.com/wphillipmoore/standard-actions/blob/develop/.github/workflows/README.md
12
name: CI
23

34
on:
@@ -31,40 +32,7 @@ concurrency:
3132
cancel-in-progress: true
3233

3334
jobs:
34-
quality:
35-
# yamllint disable-line rule:line-length
36-
uses: wphillipmoore/standard-actions/.github/workflows/ci-quality.yml@v1.5
37-
with:
38-
language: java
39-
versions: ${{ inputs.java-versions || '["17", "21"]' }}
40-
41-
security:
42-
# yamllint disable-line rule:line-length
43-
uses: wphillipmoore/standard-actions/.github/workflows/ci-security.yml@v1.5
44-
with:
45-
language: java
46-
run-standards: ${{ inputs.run-release != 'false' }}
47-
run-security: ${{ inputs.run-security != 'false' }}
48-
permissions:
49-
contents: read
50-
security-events: write
51-
52-
release:
53-
# yamllint disable-line rule:line-length
54-
uses: wphillipmoore/standard-actions/.github/workflows/ci-release.yml@v1.5
55-
with:
56-
language: java
57-
run-release: ${{ inputs.run-release != false }}
58-
59-
test:
60-
# yamllint disable-line rule:line-length
61-
uses: wphillipmoore/standard-actions/.github/workflows/ci-test.yml@v1.5
62-
with:
63-
language: java
64-
versions: ${{ inputs.java-versions || '["17", "21"]' }}
65-
6635
audit:
67-
# yamllint disable-line rule:line-length
6836
uses: wphillipmoore/standard-actions/.github/workflows/ci-audit.yml@v1.5
6937
with:
7038
language: java
@@ -107,7 +75,37 @@ jobs:
10775
MQ_REST_ADMIN_RUN_INTEGRATION: "1"
10876
MQ_SKIP_LIFECYCLE: "1"
10977
# yamllint disable-line rule:line-length
110-
MQ_REST_BASE_URL: https://localhost:${{ matrix.qm1-rest-port }}/ibmmq/rest/v2
78+
MQ_REST_BASE_URL: >-
79+
https://localhost:${{ matrix.qm1-rest-port }}/ibmmq/rest/v2
11180
# yamllint disable-line rule:line-length
112-
MQ_REST_BASE_URL_QM2: https://localhost:${{ matrix.qm2-rest-port }}/ibmmq/rest/v2
81+
MQ_REST_BASE_URL_QM2: >-
82+
https://localhost:${{ matrix.qm2-rest-port }}/ibmmq/rest/v2
11383
run: ./mvnw verify -B
84+
85+
quality:
86+
uses: wphillipmoore/standard-actions/.github/workflows/ci-quality.yml@v1.5
87+
with:
88+
language: java
89+
versions: ${{ inputs.java-versions || '["17", "21"]' }}
90+
91+
security:
92+
uses: wphillipmoore/standard-actions/.github/workflows/ci-security.yml@v1.5
93+
with:
94+
language: java
95+
run-standards: ${{ inputs.run-release != 'false' }}
96+
run-security: ${{ inputs.run-security != 'false' }}
97+
permissions:
98+
contents: read
99+
security-events: write
100+
101+
test:
102+
uses: wphillipmoore/standard-actions/.github/workflows/ci-test.yml@v1.5
103+
with:
104+
language: java
105+
versions: ${{ inputs.java-versions || '["17", "21"]' }}
106+
107+
version:
108+
uses: wphillipmoore/standard-actions/.github/workflows/ci-version-bump.yml@v1.5
109+
with:
110+
language: java
111+
run-release: ${{ inputs.run-release != 'false' }}

.github/workflows/publish-docs.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/publish-release.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)