Skip to content

Commit a7a8522

Browse files
CCM-13478: Initial commit with various improvements
1 parent f74d4da commit a7a8522

File tree

7 files changed

+48
-18
lines changed

7 files changed

+48
-18
lines changed

.github/actions/build-docs/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ runs:
2727
uses: ruby/[email protected]
2828
with:
2929
ruby-version: "3.4.7" # Not needed with a .ruby-version file
30-
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
31-
#cache-version: 0 # Increment this number if you need to re-download cached gems
30+
bundler-cache: true # Enable automatic gem caching (saves ~60-90s per build)
31+
cache-version: 0 # Increment this number if you need to re-download cached gems
3232
working-directory: "./docs"
3333
- name: Setup Pages
3434
id: pages

.github/actions/node-install/action.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runs:
1616
uses: actions/setup-node@v6
1717
with:
1818
node-version: '${{ inputs.node-version }}'
19+
cache: 'npm'
20+
cache-dependency-path: '**/package-lock.json'
1921

2022
- name: "Configure npm for GitHub Packages"
2123
shell: bash

.github/workflows/stage-2-test.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
uses: actions/setup-python@v6
8181
with:
8282
python-version: ${{ inputs.python_version }}
83+
cache: 'pip'
84+
cache-dependency-path: '**/requirements*.txt'
8385
- name: "Run unit test suite"
8486
run: |
8587
make test-unit
@@ -117,6 +119,8 @@ jobs:
117119
uses: actions/setup-python@v6
118120
with:
119121
python-version: ${{ inputs.python_version }}
122+
cache: 'pip'
123+
cache-dependency-path: '**/requirements*.txt'
120124
- uses: ./.github/actions/node-install
121125
with:
122126
node-version: ${{ inputs.nodejs_version }}
@@ -143,22 +147,6 @@ jobs:
143147
- name: "Run typecheck"
144148
run: |
145149
make test-typecheck
146-
test-coverage:
147-
name: "Test coverage"
148-
needs: [test-unit]
149-
runs-on: ubuntu-latest
150-
timeout-minutes: 5
151-
permissions:
152-
contents: read
153-
steps:
154-
- name: "Checkout code"
155-
uses: actions/checkout@v5
156-
- name: "Run test coverage check"
157-
run: |
158-
make test-coverage
159-
- name: "Save the coverage check result"
160-
run: |
161-
echo "Nothing to save"
162150
perform-static-analysis:
163151
name: "Perform static analysis"
164152
needs: [test-unit]

.github/workflows/stage-3-build.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,42 @@ on:
3333
type: string
3434

3535
jobs:
36+
detect-doc-changes:
37+
name: "Detect Documentation Changes"
38+
runs-on: ubuntu-latest
39+
outputs:
40+
docs_changed: ${{ steps.filter.outputs.docs }}
41+
schemas_changed: ${{ steps.filter.outputs.schemas }}
42+
eventcatalog_changed: ${{ steps.filter.outputs.eventcatalog }}
43+
steps:
44+
- name: "Checkout code"
45+
uses: actions/checkout@v5
46+
47+
- name: "Check for relevant changes"
48+
uses: dorny/paths-filter@v3
49+
id: filter
50+
with:
51+
filters: |
52+
docs:
53+
- 'docs/**'
54+
- '**.md'
55+
schemas:
56+
- 'schemas/**'
57+
- 'src/cloudevents/**'
58+
- 'src/cloudeventjekylldocs/**'
59+
eventcatalog:
60+
- 'src/eventcatalog/**'
61+
- 'src/asyncapigenerator/**'
62+
- 'src/eventcatalogasyncapiimporter/**'
63+
3664
artefact-jekyll-docs:
3765
name: "Build Docs"
66+
needs: [detect-doc-changes]
67+
# Only build docs if relevant files changed
68+
if: |
69+
needs.detect-doc-changes.outputs.docs_changed == 'true' ||
70+
needs.detect-doc-changes.outputs.schemas_changed == 'true' ||
71+
needs.detect-doc-changes.outputs.eventcatalog_changed == 'true'
3872
runs-on: ubuntu-latest
3973
timeout-minutes: 15
4074
steps:

tests/playwright/digital-letters-component-tests/core-notify.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const baseEvent: Omit<PDMResourceAvailable, 'id' | 'data'> = {
3535
};
3636

3737
test.describe('Digital Letters - Core Notify', () => {
38+
test.describe.configure({ mode: 'parallel' });
39+
3840
test.beforeAll(async () => {
3941
await purgeQueue(CORE_NOTIFIER_DLQ_NAME);
4042
test.setTimeout(250_000);

tests/playwright/digital-letters-component-tests/pdm-poll.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const unavailableEvent = {
4141
};
4242

4343
test.describe('PDM Poll', () => {
44+
test.describe.configure({ mode: 'parallel' });
45+
4446
test.beforeAll(async () => {
4547
test.setTimeout(250_000);
4648
await purgeQueue(PDM_POLL_DLQ_NAME);

tests/playwright/digital-letters-component-tests/pdm-uploader.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ const baseEvent = {
5151
};
5252

5353
test.describe('Digital Letters - Upload to PDM', () => {
54+
test.describe.configure({ mode: 'parallel' });
55+
5456
test.beforeAll(async () => {
5557
await purgeQueue(PDM_UPLOADER_DLQ_NAME);
5658
test.setTimeout(250_000);

0 commit comments

Comments
 (0)