Skip to content

Add GitHub Actions workflow to build site on PRs#74

Open
etagwerker wants to merge 3 commits into
mainfrom
ci/add-build-workflow
Open

Add GitHub Actions workflow to build site on PRs#74
etagwerker wants to merge 3 commits into
mainfrom
ci/add-build-workflow

Conversation

@etagwerker

Copy link
Copy Markdown
Member

Summary

  • Adds .github/workflows/build.yml that runs bundle exec middleman build on every PR to main and on pushes to main.
  • Uses ruby/setup-ruby@v1 with bundler-cache: true, so Ruby version is picked up from .ruby-version (3.4.2) and gems are cached between runs.
  • No Node setup needed — Ubuntu runners ship with Node, which is enough for the ExecJS-driven asset pipeline.

Why

Right now every merge (especially Dependabot bumps like #68, #70#72) relies on a human running the build locally to confirm nothing broke. A simple CI build catches regressions automatically and lets us trust Dependabot PRs at a glance.

Test plan

🤖 Generated with Claude Code

Runs `bundle exec middleman build` on every PR to main and on
pushes to main, so dependency bumps (Dependabot) and other
changes can be verified automatically instead of relying on a
human running the build locally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions CI workflow to build the Middleman site for pull requests and pushes to main, to catch build regressions automatically (including in dependency update PRs).

Changes:

  • Introduces a new Build workflow triggered on pull_request and push events for main.
  • Checks out the repo, sets up Ruby with Bundler caching, and runs bundle exec middleman build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build.yml
etagwerker and others added 2 commits May 21, 2026 09:38
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
`make build` depends on `make deps`, which runs `npm install` and
fails because `karma-phantomjs-launcher` pulls in PhantomJS — its
install script no longer works on modern Node.

The JS toolchain (karma, phantomjs, bower) is only used for the
karma test suite, not for building the static site, so CI can skip
it entirely. The Makefile remains untouched for local dev.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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