diff --git a/.github/actions/run-unit-tests/action.yml b/.github/actions/run-unit-tests/action.yml index f9070fdf..45201fbb 100644 --- a/.github/actions/run-unit-tests/action.yml +++ b/.github/actions/run-unit-tests/action.yml @@ -36,6 +36,21 @@ runs: path: code-coverage-results.md message: | Code coverage report + + - name: Create Html coverage report + uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8 + if: github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' + with: + reports: 'coverage/**/coverage.cobertura.xml' + targetdir: 'CoverageReports' + reporttypes: 'Html' + + - name: Upload coverage reports + uses: actions/upload-artifact@v4 + if: github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' + with: + name: CoverageReports + path: CoverageReports - name: Write to Job Summary shell: bash diff --git a/src/Dfe.EarlyYearsQualification.Content/Constants/ContentTypes.cs b/src/Dfe.EarlyYearsQualification.Content/Constants/ContentTypes.cs index ca1acce6..a6278faf 100644 --- a/src/Dfe.EarlyYearsQualification.Content/Constants/ContentTypes.cs +++ b/src/Dfe.EarlyYearsQualification.Content/Constants/ContentTypes.cs @@ -16,4 +16,5 @@ public static class ContentTypes public const string DropdownQuestionPage = "dropdownQuestionPage"; public const string QualificationListPage = "qualificationListPage"; public const string ConfirmQualificationPage = "confirmQualificationPage"; + public const string CheckAdditionalRequirementsPage = "checkAdditionalRequirementsPage"; } \ No newline at end of file diff --git a/src/Dfe.EarlyYearsQualification.Content/Entities/AdditionalRequirementQuestion.cs b/src/Dfe.EarlyYearsQualification.Content/Entities/AdditionalRequirementQuestion.cs index 66b00c92..d8f851e6 100644 --- a/src/Dfe.EarlyYearsQualification.Content/Entities/AdditionalRequirementQuestion.cs +++ b/src/Dfe.EarlyYearsQualification.Content/Entities/AdditionalRequirementQuestion.cs @@ -15,4 +15,6 @@ public class AdditionalRequirementQuestion public string ConfirmationStatement { get; set; } = string.Empty; public bool AnswerToBeFullAndRelevant { get; set; } + + public List