From 20fda5c8da041e287b37de29fd4d01b9e8a94801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 10 Dec 2024 22:44:01 +0100 Subject: [PATCH] Setup website schema validation workflow This allows to validate changes made against .doctrine-project.json against the corresponding JSON schema. --- .github/workflows/website-schema.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/website-schema.yml diff --git a/.github/workflows/website-schema.yml b/.github/workflows/website-schema.yml new file mode 100644 index 00000000..c4527210 --- /dev/null +++ b/.github/workflows/website-schema.yml @@ -0,0 +1,20 @@ +name: "Website config validation" + +on: + pull_request: + branches: + - "*.x" + paths: + - ".doctrine-project.json" + - ".github/workflows/website-schema.yml" + push: + branches: + - "*.x" + paths: + - ".doctrine-project.json" + - ".github/workflows/website-schema.yml" + +jobs: + json-validate: + name: "Validate JSON schema" + uses: "doctrine/.github/.github/workflows/website-schema.yml@7.1.0"