Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c931a50
refactor!: consolidate native IaC reports and separate CI gates
neilime Nov 28, 2026
ccb0106
docs: regenerate native IaC report interfaces
neilime Nov 28, 2026
b284353
fix: validate native infrastructure reports through the shared contract
neilime Nov 28, 2026
d082b20
ci: validate the final shared reporting contract
neilime Nov 28, 2026
39e8b41
ci: remove obsolete test comment permissions
neilime Nov 28, 2026
35cb786
docs: preserve branding in generated action references
neilime Nov 28, 2026
fbbfb16
fix(ci): adopt external coverage comment ownership
neilime Nov 29, 2026
bea07b0
ci: adopt actionable reports and stable coverage project flags
neilime Nov 29, 2026
c0bf7e0
ci: update validated reporting implementation
neilime Nov 29, 2026
6ae8613
docs: correct release summary credential
neilime Nov 29, 2026
c4a1af5
refactor: keep native report retention under actions
neilime Nov 29, 2026
0e50ffd
docs: pin generated examples to the reporting preview
neilime Nov 29, 2026
b9e5349
ci: use bundled Node.js coverage conversion
neilime Nov 29, 2026
35152ef
refactor: keep native report staging with its owning action
neilime Nov 30, 2026
ba1a154
refactor(ci): adopt standalone report publication actions
neilime Nov 30, 2026
5ede6dd
refactor(ci): adopt standalone report publication actions
neilime Nov 30, 2026
a097f61
refactor(reports)!: compose common report preparation
neilime Nov 30, 2026
16048b7
fix(reports): align artifacts with validated common publication
neilime Nov 30, 2026
4f5767a
fix(reports): adopt file-safe coverage and bounded publication
neilime Nov 30, 2026
d97aa41
fix(reports): update common reporting dependency
neilime Nov 30, 2026
ecfaf1d
fix(ci): handle delayed fixture artifact lookup
neilime Nov 30, 2026
e25b917
refactor(ci): call shared completion workflow
neilime Dec 1, 2026
0c72205
chore: reconcile reporting changes with main
neilime Dec 1, 2026
0b1223f
ci: adopt separate test and lint report comments
neilime Dec 3, 2026
b85476b
ci: display lint before tests in reports
neilime Dec 3, 2026
06e94ae
ci: refresh reporting providers after Common 5.0.0
neilime Dec 4, 2026
b79ce5d
refactor(devx): simplify action development commands
neilime Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ updates:
prefix: build
include: scope
directories:
- "/actions/*"
- "/actions/*/*"
cooldown:
default-days: 7
Expand Down
15 changes: 15 additions & 0 deletions .github/linters/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# FIXME: Remove this scoped exception when Actionlint supports code-quality.
# https://github.com/rhysd/actionlint/pull/674
paths:
.github/workflows/__main-ci.yml:
ignore:
- ^unknown permission scope "code-quality"\.
.github/workflows/__pull-request-ci.yml:
ignore:
- ^unknown permission scope "code-quality"\.
.github/workflows/__release.yml:
ignore:
- ^unknown permission scope "code-quality"\.
.github/workflows/__shared-ci.yml:
ignore:
- ^unknown permission scope "code-quality"\.
2 changes: 1 addition & 1 deletion .github/workflows/__greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: {}

jobs:
greetings:
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
permissions:
contents: read
issues: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/__main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
name: Continuous Integration
uses: $/.github/workflows/__shared-ci.yml
permissions:
id-token: write
code-quality: write
actions: read
contents: read
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__need-fix-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions: {}

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
permissions:
contents: read
issues: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/__pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
name: Continuous Integration
uses: $/.github/workflows/__shared-ci.yml
permissions:
id-token: write
code-quality: write
actions: read
contents: read
issues: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/__release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
if: github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch
uses: $/.github/workflows/__shared-ci.yml
permissions:
id-token: write
code-quality: write
actions: read
contents: read
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
main:
permissions:
contents: read
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
68 changes: 57 additions & 11 deletions .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}

jobs:
linter:
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
with:
linter-env: |
FILTER_REGEX_EXCLUDE=/(\.cache|\.reports)/
Expand All @@ -20,35 +20,81 @@ jobs:
pull-requests: write
security-events: write
statuses: write
test-action-vm-create:
test-vm-create:
permissions:
actions: read
contents: read
uses: $/.github/workflows/__test-actions-vm-create.yml
test-action-vm-test:
test-vm-test:
permissions:
actions: read
contents: read
pull-requests: write
uses: $/.github/workflows/__test-actions-vm-test.yml
test-action-vm-destroy:
test-vm-destroy:
permissions:
actions: read
contents: read
uses: $/.github/workflows/__test-actions-vm-destroy.yml
test-action-ansible-test:
test-ansible:
permissions:
actions: read
contents: read
pull-requests: write
uses: $/.github/workflows/__test-actions-ansible-test.yml
test-action-ansible-test-molecule:
test-molecule:
permissions:
actions: read
contents: read
pull-requests: write
uses: $/.github/workflows/__test-actions-ansible-test-molecule.yml
test-action-opentofu-test:
test-opentofu:
permissions:
actions: read
contents: read
pull-requests: write
uses: $/.github/workflows/__test-actions-opentofu-test.yml

test-retain-native-reports:
permissions:
actions: read
contents: read
uses: $/.github/workflows/__test-actions-retain-native-reports.yml

reports:
if: always()
needs:
- linter
- test-vm-create
- test-vm-test
- test-vm-destroy
- test-ansible
- test-molecule
- test-opentofu
- test-retain-native-reports
uses: hoverkraft-tech/ci-github-common/.github/workflows/publish-ci-reports.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
permissions:
actions: read
contents: read
pull-requests: write
code-quality: write
id-token: write
security-events: write
with:
job-results: ${{ toJSON(needs) }}

complete:
name: CI complete
if: always()
needs:
[
linter,
test-vm-create,
test-vm-test,
test-vm-destroy,
test-ansible,
test-molecule,
test-opentofu,
test-retain-native-reports,
reports,
]
uses: hoverkraft-tech/ci-github-common/.github/workflows/check-jobs.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
permissions: {}
with:
job-results: ${{ toJSON(needs) }}
2 changes: 1 addition & 1 deletion .github/workflows/__stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: {}

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
permissions:
issues: write
pull-requests: write
92 changes: 61 additions & 31 deletions .github/workflows/__test-actions-ansible-test-molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
contents: read
steps:
- name: Arrange - Checkout action sources
Expand All @@ -18,18 +19,18 @@ jobs:
persist-credentials: false
# jscpd:ignore-end
- name: Act - Run ansible/test-molecule unit tests
uses: hoverkraft-tech/ci-github-nodejs/actions/test@98d91b1cc347efc64cd5fb20bc0ebc076acad114 # 3.1.0
uses: hoverkraft-tech/ci-github-nodejs/actions/test@133df96fa31a002107174959beafa09808597051 # PR #624 (unreleased)
with:
working-directory: actions/ansible/test-molecule
command: test:ci
coverage: ""
engine: node:test
coverage: "true"
arguments: '["--test-coverage-exclude=**/tests/**","--test-coverage-include=*.cjs"]'
local:
runs-on: ubuntu-latest
timeout-minutes: 12
permissions:
actions: read
contents: read
pull-requests: write
strategy:
fail-fast: false
matrix:
Expand All @@ -52,25 +53,42 @@ jobs:
molecule-scenario: tests/fixture/molecule/local
ansible-requirements: tests/fixture/ansible/requirements.txt
test-timeout-minutes: ${{ matrix.result == 'timeout' && '1' || '5' }}
report-name: Molecule local scenario - ${{ matrix.result }}
- name: Arrange - Download local native-artifacts-0 evidence
uses: hoverkraft-tech/ci-github-common/actions/download-artifact@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
with:
artifact-ids: ${{ steps.scenario.outputs.report-artifact-id }}
path: ${{ runner.temp }}/native-artifacts-0
if: ${{ !cancelled() }}
- name: Assert - Require native reports and scenario cleanup
id: verify-ansible-test-molecule-local
if: ${{ always() }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
EVIDENCE_DIRECTORY: ${{ runner.temp }}/native-artifacts-0
MOLECULE_TEST_DIRECTORY: ${{ runner.temp }}/molecule-local
SCENARIO_OUTCOME: ${{ steps.scenario.outcome }}
NEGATIVE_ARTIFACT_IDS: ${{ steps.scenario.outcome == 'failure' &&
steps.scenario.outputs.report-artifact-id || '' }}
with:
script: |
const fs = require('node:fs');
const assert = require('node:assert/strict');
const { PublishedReports } = require('./tests/helpers/published-reports.cjs');
const published = new PublishedReports(github, context);
const published = new PublishedReports(context);
const expected = process.env.MOLECULE_TEST_RESULT === 'success' ? 'success' : 'failure';
assert.equal(process.env.SCENARIO_OUTCOME, expected);
assert.equal(fs.existsSync(process.env.MOLECULE_TEST_DIRECTORY), false);
const [report] = await published.read('molecule-reports-', 1);
assert.ok(report.files.some(file => file.endsWith('/scenario.xml')));
assert.equal(/<(?:failure|error)\b/.test(report.text), expected === 'failure');
const [report] = await published.read(1);
assert.ok(report.files.every(file => !file.endsWith('-scenario.xml')));
assert.equal(report.result.outcome, expected);
core.setOutput('negative-fixtures', process.env.NEGATIVE_ARTIFACT_IDS);
- name: Cleanup - Discard ansible-test-molecule local negative results
if: steps.verify-ansible-test-molecule-local.outputs.negative-fixtures != ''
uses: hoverkraft-tech/ci-github-common/actions/quality/discard-report-fixtures@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
with:
artifact-ids: ${{
steps.verify-ansible-test-molecule-local.outputs.negative-fixtures
}}
vm:
runs-on: ubuntu-latest
timeout-minutes: 25
Expand All @@ -79,7 +97,6 @@ jobs:
permissions:
actions: read
contents: read
pull-requests: write
steps:
- name: Arrange - Checkout fixture
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -118,20 +135,26 @@ jobs:
with:
molecule-scenario: tests/fixture/molecule/smoke
ansible-requirements: tests/fixture/ansible/requirements.txt
report-name: Molecule - success

- name: Arrange - Download vm native-artifacts-1 evidence
uses: hoverkraft-tech/ci-github-common/actions/download-artifact@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
with:
artifact-ids: ${{ steps.molecule-success.outputs.report-artifact-id }}
path: ${{ runner.temp }}/native-artifacts-1
if: ${{ !cancelled() }}
- name: Assert - Check successful Molecule execution
if: ${{ !cancelled() && steps.vm.outcome == 'success' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
EVIDENCE_DIRECTORY: ${{ runner.temp }}/native-artifacts-1
SUCCESS: ${{ steps.molecule-success.outcome }}
with:
script: |
const assert = require('node:assert/strict');
const { PublishedReports } = require('./tests/helpers/published-reports.cjs');
const published = new PublishedReports(github, context);
const published = new PublishedReports(context);
assert.equal(process.env.SUCCESS, 'success');
await published.read('molecule-reports-', 1);
await published.read(1);

- name: Act - Test Molecule assertion-failure
id: molecule-assertion-failure
Expand All @@ -144,20 +167,6 @@ jobs:
with:
molecule-scenario: tests/fixture/molecule/smoke
ansible-requirements: tests/fixture/ansible/requirements.txt
report-name: Molecule - assertion-failure

- name: Assert - Check Molecule assertion failure and reports
if: ${{ !cancelled() && steps.vm.outcome == 'success' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
ASSERTION_FAILURE: ${{ steps.molecule-assertion-failure.outcome }}
with:
script: |
const assert = require('node:assert/strict');
const { PublishedReports } = require('./tests/helpers/published-reports.cjs');
const published = new PublishedReports(github, context);
assert.equal(process.env.ASSERTION_FAILURE, 'failure');
await published.read('molecule-reports-', 2);

- name: Act - Test Molecule idempotence-failure
id: molecule-idempotence-failure
Expand All @@ -170,21 +179,42 @@ jobs:
with:
molecule-scenario: tests/fixture/molecule/smoke
ansible-requirements: tests/fixture/ansible/requirements.txt
report-name: Molecule - idempotence-failure

- name: Arrange - Download vm native-artifacts-3 evidence
uses: hoverkraft-tech/ci-github-common/actions/download-artifact@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
with:
artifact-ids:
${{ steps.molecule-success.outputs.report-artifact-id }},${{
steps.molecule-assertion-failure.outputs.report-artifact-id }},${{
steps.molecule-idempotence-failure.outputs.report-artifact-id }}
path: ${{ runner.temp }}/native-artifacts-3
if: ${{ !cancelled() }}
- name: Assert - Check Molecule idempotence failure and reports
id: verify-ansible-test-molecule-vm
if: ${{ !cancelled() && steps.vm.outcome == 'success' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
EVIDENCE_DIRECTORY: ${{ runner.temp }}/native-artifacts-3
IDEMPOTENCE_FAILURE: ${{ steps.molecule-idempotence-failure.outcome }}
NEGATIVE_ARTIFACT_IDS: ${{
steps.molecule-assertion-failure.outputs.report-artifact-id }},${{
steps.molecule-idempotence-failure.outputs.report-artifact-id }}
ASSERTION_FAILURE: ${{ steps.molecule-assertion-failure.outcome }}
with:
script: |
const assert = require('node:assert/strict');
const { PublishedReports } = require('./tests/helpers/published-reports.cjs');
const published = new PublishedReports(github, context);
const published = new PublishedReports(context);
assert.equal(process.env.ASSERTION_FAILURE, 'failure');
assert.equal(process.env.IDEMPOTENCE_FAILURE, 'failure');
await published.read('molecule-reports-', 3);

await published.read(3);
core.setOutput('negative-fixtures', process.env.NEGATIVE_ARTIFACT_IDS);
- name: Cleanup - Discard ansible-test-molecule vm negative results
if: steps.verify-ansible-test-molecule-vm.outputs.negative-fixtures != ''
uses: hoverkraft-tech/ci-github-common/actions/quality/discard-report-fixtures@26f3d6878844ec53849eec6ac75af8d14ea402e9 # 5.0.0
with:
artifact-ids: ${{
steps.verify-ansible-test-molecule-vm.outputs.negative-fixtures }}
# Fixture teardown is intentionally repeated; action assertions remain above.
# jscpd:ignore-start
- name: Cleanup - Destroy direct QEMU guest
Expand Down
Loading
Loading