Add Moodle Playground preview blueprint and PR action#718
Open
erseco wants to merge 2 commits into
Open
Conversation
Adds a blueprint.json that provisions a Moodle 5.2 demo site with
mod_zoom installed (installMoodlePlugin) and configured with placeholder
Server-to-Server OAuth credentials (accountid / clientid / clientsecret)
so the plugin's admin settings page renders without immediately erroring.
The blueprint also creates a demo course (ZOOMDEMO01) and a stub Zoom
activity. Because zoom_add_instance() calls the Zoom REST API — which is
not reachable from the Playground sandbox — the activity is inserted
directly into the {zoom} and {course_modules} tables via a runPhpCode
step, mirroring the pattern already used by moodle-mod_geogebra's
blueprint. The activity is intentionally a stub: Join / Start buttons
will not work, but the activity view, mod_form and settings pages can
all be inspected.
Also adds a PR workflow (.github/workflows/pr-playground-preview.yml)
that uses ateeducacion/action-moodle-playground-pr-preview to publish a
live preview link on every same-repo PR, plus a "Try in Moodle
Playground" section in README.md with a one-click playground entry
point.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About this PR — Moodle Playground
Moodle Playground (source: ateeducacion/moodle-playground) is a project that runs a full Moodle site entirely inside the browser (PHP + SQLite compiled to WebAssembly), with no server, no Docker and no local install. Given a
blueprint.jsonit provisions a fresh Moodle instance, installs plugins, creates users / courses / sample content, and opens on a chosen landing page.This PR wires that up for
mod_zoomso contributors and reviewers can try and test the plugin in a real Moodle instance with one click — useful both for users who just want to evaluate it and for reviewers who want to validate a change without standing up a local Moodle.Summary
blueprint.jsondescribing a Moodle 5.2 demo site that installsmod_zoomfrom this branch (installMoodlePlugin), sets placeholderaccountid/clientid/clientsecretso the admin settings page renders, creates a demo course (ZOOMDEMO01) and seeds a stub Zoom activity viarunPhpCodeso the activity view andmod_formare reachable..github/workflows/pr-playground-preview.ymlwhich usesateeducacion/action-moodle-playground-pr-previewto publish a live Moodle Playground preview link on every same-repo PR.README.mdlinking to the blueprint, with an explicit note that the preview cannot reach the Zoom API.