From 56b3df4524ca5b9d3647c2037b46a076da7794f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 1 Aug 2023 16:05:16 +0200 Subject: [PATCH] Precheck generated tiny plugins files --- .github/workflows/skel-ci.yml | 2 +- tests/examples/tiny.yaml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tests/examples/tiny.yaml diff --git a/.github/workflows/skel-ci.yml b/.github/workflows/skel-ci.yml index a3efa3b..9e66168 100644 --- a/.github/workflows/skel-ci.yml +++ b/.github/workflows/skel-ci.yml @@ -58,7 +58,7 @@ jobs: - name: Generate example skeletons env: - FILES: auth block mod format + FILES: auth block mod format tiny run: for file in $FILES; do php moodle/admin/tool/pluginskel/cli/generate.php $(realpath moodle/admin/tool/pluginskel/tests/examples/${file}.yaml); done - name: PHP Lint diff --git a/tests/examples/tiny.yaml b/tests/examples/tiny.yaml new file mode 100644 index 0000000..a0a119b --- /dev/null +++ b/tests/examples/tiny.yaml @@ -0,0 +1,21 @@ +component: tiny_example +name: Example Plugin +release: "0.1.0" +copyright: 2022 Andrew Lyons +features: + settings: true +privacy: + haspersonaldata: false + uselegacypolyfill: false +tiny_features: + buttons: + - name: startdemo + category: content + text: Start demo + menuitems: + - name: startdemo + category: file + text: 'Start the demo' + options: + - name: myFirstProperty + type: string