Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
/ setup-moon-action Public archive

A GitHub action for installing moon globally and caching the toolchain.

Notifications You must be signed in to change notification settings

moonrepo/setup-moon-action

Repository files navigation

moon - Setup moon and toolchain

A GitHub action that sets up an environment for moon by...

Installing the moon binary globally using the official installation script, and appending the installation directory to PATH.

And also caching the moon toolchain at ~/.moon (or ~/.proto), keyed by hashing the .moon/toolchain.yml configuration file found in the repository.

Installation

# ...
jobs:
  ci:
    name: CI
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: moonrepo/setup-moon-action@v1
      - run: moon ci

Inputs

  • version - Version of moon to explicitly install. Defaults to "latest".