Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
anchor

GitHub Action

Starship Devnet

0.2.18

Starship Devnet

anchor

Starship Devnet

Run mini cosmos ecosystem via devnet

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Starship Devnet

uses: cosmology-tech/[email protected]

Learn more about this action in cosmology-tech/starship-action

Choose a version

Starship Action

GitHub Action for creating and running starship devnets in CI.

Usage

Pre-requisites

Create a workflow YAML file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

For more information on inputs, see the API Documentation

  • values: Required, config for helm chart for starship devnet inputs
  • port-forward: Optional, toggle to perform local port-forwarding, based on the values.yaml (default: false)
  • kubeconfig: Optional, Kubeconfig for remote cluster, if set, will be used instead of creating local kind cluster
  • version: Optional, version of devnet chart from starship (default: 0.1.4)
  • repo: Optional, Helm repo to fetch the chart from (default: https://cosmology-tech.github.io/starship)
  • name: Optional, Release name for the helm chart deployment (default: starship-devnet)
  • namespace: Optional, Kubernetes namespace to which helm charts will be deployed. If not found, namespace will be created. (default: ci-${{ github.repository }}-${{ github.workflow }}-${{ github.ref }})
  • chart: Optional, Name of the help chart to use. Recommended: use default (default: starship/devnet)

Outputs

  • namespace: Namespace where the devnet is deployed
  • name: Name of the helm chart, same as name input

Example workflow

Chreate a workflow (eg: .github/workflows/create-osmosis-wasmd.yml)

name: Create Starship devnet

on: pull_request

jobs:
  create-devnet:
    runs-on: ubuntu-latest
    steps:
      - name: Create starship devnet for osmos and wasm
        uses: cosmology-tech/starship-action@v1
        with:
          values: |
            chains:
            - name: osmosis-1
              type: osmosis
              numValidators: 1
              ports:
                rest: 1313
                rpc: 26653
              resources:
                limits:
                  cpu: "0.2"
                  memory: "200M"
                requests:
                  cpu: "0.1"
                  memory: "100M"
            - name: wasmd
              type: wasmd
              numValidators: 1
              ports:
                rpc: 26659
                rest: 1319
              resources:
                limits:
                  cpu: "0.2"
                  memory: "200M"
                requests:
                  cpu: "0.1"
                  memory: "100M"