Skip to content

Add GitHub Codespaces support with CI validation#468

Merged
netchampfaris merged 3 commits intodevelopfrom
copilot/setup-github-codespaces
Mar 6, 2026
Merged

Add GitHub Codespaces support with CI validation#468
netchampfaris merged 3 commits intodevelopfrom
copilot/setup-github-codespaces

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 6, 2026

No devcontainer configuration existed, requiring a full local Frappe bench setup to contribute. Adds first-class Codespaces support and a CI workflow to validate the config on PRs without merging.

Devcontainer (.devcontainer/)

  • devcontainer.json – attaches VS Code to the frappe service; forwards ports 8000 (Frappe) and 8080 (Vite); installs Python, Vue/Volar, ESLint, Tailwind, Prettier, GitLens extensions; points the Python interpreter at the bench virtualenv
  • docker-compose.ymlmariadb:10.6 + redis:alpine + frappe/bench:latest; repo mounted at /workspace; bench installation persisted in a named volume so container rebuilds don't re-run setup
  • setup.sh – idempotent post-create script: waits for MariaDB, runs bench init, symlinks /workspace as the live app (edits reflected immediately), creates gameplan.localhost, installs frontend deps via pnpm install

After the Codespace opens

# Terminal 1
cd ~/frappe-bench && bench start      # http://localhost:8000

# Terminal 2
cd /workspace && pnpm dev             # http://localhost:8080/g
# Login: alex@example.com / 123

CI validation (.github/workflows/devcontainer.yml)

Triggers on PRs/pushes that touch .devcontainer/**. Uses devcontainers/ci@v0.3 to build the full Docker Compose stack and run setup.sh inside the container.

setup.sh detects CI=true (set automatically by GitHub Actions) and takes a fast path — installs pnpm, prints tool versions, exits — instead of the full 10–15 min bench init. Proves the image builds, services start, and required tooling is present in a few minutes.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: netchampfaris <9355208+netchampfaris@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up GitHub Codespaces for Gameplan Add GitHub Codespaces devcontainer configuration Mar 6, 2026
@netchampfaris netchampfaris marked this pull request as ready for review March 6, 2026 10:19
Co-authored-by: netchampfaris <9355208+netchampfaris@users.noreply.github.com>
@cypress
Copy link
Copy Markdown

cypress bot commented Mar 6, 2026

gameplan    Run #406

Run Properties:  status check passed Passed #406  •  git commit 36dfdb886d ℹ️: Merge b794560ebdf2c8c26e237fb8748feec4173b6548 into 7ab03f2d4c5ac04b2d26db9107f5...
Project gameplan
Branch Review copilot/setup-github-codespaces
Run status status check passed Passed #406
Run duration 00m 48s
Commit git commit 36dfdb886d ℹ️: Merge b794560ebdf2c8c26e237fb8748feec4173b6548 into 7ab03f2d4c5ac04b2d26db9107f5...
Committer Copilot
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 7
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@netchampfaris netchampfaris merged commit 3f23a55 into develop Mar 6, 2026
Copilot AI changed the title Add GitHub Codespaces devcontainer configuration Add GitHub Codespaces support with CI validation Mar 6, 2026
Copilot stopped work on behalf of netchampfaris due to an error March 6, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants