Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveRecord Collection

Gems live under gems/. Moon discovers projects under gems/* that have a moon.yml.

Install the Moon version pinned in .prototools (for example, with proto install moon). Keep using your existing Ruby version manager; the gem tasks use Ruby and Bundler from PATH.

moon query projects
moon run simple-batch-job:spec simple-batch-job:lint

simple-batch-job:spec uses SQLite. To run simple-batch-job:spec-all-databases, start the database services first; see the gem's testing guide. Moon serializes the two spec tasks within one invocation because they regenerate the same database configuration and schema files. Do not overlap separate Moon or Rake spec invocations in the same checkout.

CI

The GitHub Actions Test workflow runs on pushes to main, pull-req/** and hotfix/**. Its affected job checks out the full history and runs .github/scripts/affected-matrix to build the test matrix for the changes between the previous push (github.event.before) and the pushed commit. From the repository root, run it locally with the base and head commit SHAs:

.github/scripts/affected-matrix "$base" "$head"

Changes to shared configuration (.prototools, .moon/, the Test workflow or the matrix script) affect every project. When the base cannot be diffed (a new branch, a force push or a missing commit), every project runs. Unaffected projects do not start test jobs or database services.

Each project's moon.yml defines project.rubyVersions for the Ruby versions that run spec and lint. Projects can also set project.allDatabasesRuby to one of those versions and define a spec-all-databases task. Every matrix job starts the PostgreSQL, MySQL and MariaDB services, but the all-databases step only runs for the configured Ruby version.

The all-databases task has runInCI: false so Moon does not select it automatically. The workflow explicitly runs it with moon exec <project>:spec-all-databases --ignore-ci-checks.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages