From c3ccb2cb3a2cac7ebad9b5ad7ed8b53ebc2ec460 Mon Sep 17 00:00:00 2001 From: Natalie Carey Date: Fri, 9 Jun 2023 19:28:55 +0100 Subject: [PATCH 1/2] Adding github action to validate the plugin. --- .github/workflows/validate.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/validate.yaml diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 0000000000..0dc1eb99da --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,18 @@ +name: Validate + +on: + push: + branches: + - main + - support/* + pull_request: + +jobs: + validate: + name: Validate + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - run: npx govuk-prototype-kit@snapshot validate-plugin From 1a28e83b65833205ad74110616364ba852b11272 Mon Sep 17 00:00:00 2001 From: Natalie Carey Date: Fri, 9 Jun 2023 19:31:07 +0100 Subject: [PATCH 2/2] Adding file extension to make the validator pass. --- govuk-prototype-kit.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govuk-prototype-kit.config.json b/govuk-prototype-kit.config.json index e70d634377..28260b4221 100644 --- a/govuk-prototype-kit.config.json +++ b/govuk-prototype-kit.config.json @@ -5,7 +5,7 @@ "/lib/assets/javascripts/manage-prototype" ], "nunjucksPaths": "/lib/nunjucks", - "nunjucksFilters": "/lib/filters/core-filters", + "nunjucksFilters": "/lib/filters/core-filters.js", "scripts": [ "/lib/assets/javascripts/kit.js", "/lib/assets/javascripts/auto-store-data.js"