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

A GitHub action for installing and caching proto and its toolchain.

Notifications You must be signed in to change notification settings

moonrepo/setup-proto

Repository files navigation

Setup and install the proto toolchain

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

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

And also caching the toolchain ~/.proto, keyed by hashing the .prototools configuration file found in the workspace root.

Installation

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

Inputs

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