motoko-github-ci-workflow
Installation
SKILL.md
Motoko GitHub CI Workflow
What This Is
This skill provides a comprehensive playbook for adding or updating a GitHub Actions CI workflow for Motoko projects. It covers automated testing, benchmarking, code formatting, and building (canisters or examples) using mops, moc, prettier, icp-cli, and dfx. It is a perfect companion to the mops-package-maintenance skill.
For general information on GitHub Actions, refer to the GitHub Actions Documentation. For Motoko-specific examples, you can explore public repositories in the research-ag organization.
Prerequisites
mopsCLI (local:npm i -g ic-mops, CI:caffeinelabs/setup-mops@v1)node(latest LTS recommended, at least v22 for Prettier)dfx(installed in CI viadfinity/setup-dfx@main) for runningmops bench.dfxis the preferred runtime for benchmarks — it produces more accurate and stable numbers thanpocket-icand has proven significantly more reliable across our repositories.pocket-icis only used in CI when it is already present inmops.toml[toolchain](see Step 1).