Skip to content

Commit 96efdac

Browse files
committed
ci: add requirement and change some naming
1 parent 7db655e commit 96efdac

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
permissions: {}
1414

1515
jobs:
16-
build-push-test-flavors:
16+
build-push-test:
1717
name: Build, Push and Test (🍨 ${{ matrix.flavor }})
1818
strategy:
1919
matrix:
@@ -41,18 +41,20 @@ jobs:
4141
test-devcontainer-file: ${{ matrix.flavor == 'cpp' && '.devcontainer/cpp-test/devcontainer.json' || '' }}
4242

4343
dependency-review:
44-
needs: build-push-test-flavors
44+
name: Review Dependencies
45+
needs: build-push-test
4546
uses: ./.github/workflows/wc-dependency-review.yml
4647
permissions:
4748
contents: read
4849
pull-requests: write
4950

5051
publish-test-results:
52+
name: Publish Test Results
5153
runs-on: ubuntu-latest
5254
permissions:
5355
checks: write
5456
pull-requests: write
55-
needs: build-push-test-flavors
57+
needs: build-push-test
5658
if: ${{ !cancelled() }}
5759
steps:
5860
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -68,6 +70,7 @@ jobs:
6870
files: test-report-*.xml
6971

7072
generate-documents:
73+
name: Generate Documents
7174
uses: ./.github/workflows/wc-document-generation.yml
7275
permissions:
7376
contents: read

.github/workflows/wc-sanitize-image-name.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ on:
1616
outputs:
1717
image-basename:
1818
description: "The sanitized base name of the image (without registry or tag)"
19-
value: ${{ jobs.sanitize-inputs.outputs.image-basename }}
19+
value: ${{ jobs.sanitize.outputs.image-basename }}
2020
image-name:
2121
description: "The sanitized name of the image (without registry or tag)"
22-
value: ${{ jobs.sanitize-inputs.outputs.image-name }}
22+
value: ${{ jobs.sanitize.outputs.image-name }}
2323
fully-qualified-image-name:
2424
description: "The fully qualified name of the image including registry (but without tag)"
25-
value: ${{ jobs.sanitize-inputs.outputs.fully-qualified-image-name }}
25+
value: ${{ jobs.sanitize.outputs.fully-qualified-image-name }}
2626

2727
permissions: {}
2828

2929
jobs:
30-
sanitize-inputs:
30+
sanitize:
3131
runs-on: ${{ (startsWith(inputs.runner-labels, '[') && endsWith(inputs.runner-labels, ']')) && fromJson(inputs.runner-labels) || inputs.runner-labels }}
3232
outputs:
3333
image-basename: ${{ steps.sanitize-image-name.outputs.sanitized-basename }}

test/cpp/features/maintainability.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Feature: Maintainability
1818
This reduces the maintenance burden on users, as they do not need to manually track and apply updates.
1919
Automatic updates can also help ensure compatibility with other dependencies and tools, improving the overall stability and reliability of the development environment.
2020

21+
Rule: Re-usable build system
22+
amp-devcontainer *SHOULD* provide re-usable building blocks to enable building, publishing and testing derived containers.
23+
24+
Providing re-usable building blocks for building, publishing and testing derived containers reduces duplication, and ensures consistent application of practices.
25+
Derived containers (i.e. containers using amp-devcontainer as a base for further extension) should be able to build, push and test in the same way that amp-devcontainer does, without the need to duplicate the build system.
26+
2127
Rule: Architectural decisions
2228
amp-devcontainer *SHOULD* document its architectural decisions.
2329

0 commit comments

Comments
 (0)