GitHub Action for creating and running starship devnets in CI.
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.
Input | Required | Default | Description |
---|---|---|---|
config |
Yes | - | Path to the config file for helm chart for starship devnet inputs |
cli-version |
No | 3.10.0 |
Version of @starship-ci/cli to use |
kubeconfig |
No | - | Kubeconfig for remote cluster. If set, will be used instead of creating local kind cluster |
namespace |
No | ci-${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} |
Kubernetes namespace for helm chart deployment |
repo |
No | https://hyperweb-io.github.io/starship |
Helm repo URL to fetch the chart from |
name |
No | starship-devnet |
Release name for the helm chart deployment |
chart |
No | starship/devnet |
Name of the helm chart to use |
timeout |
No | 10m |
Timeout duration for helm install |
Output | Description |
---|---|
namespace |
Namespace where the devnet is deployed |
name |
Name of the helm chart, same as name input |
Create a config file (eg: starship-config.yaml
):
name: starship-localnet
version: 1.7.0
chains:
- id: osmosis-1
name: osmosis
numValidators: 2
ports:
rest: 1313
rpc: 26653
faucet: 8003
- id: cosmoshub-4
name: cosmoshub
numValidators: 2
ports:
rest: 1317
rpc: 26657
faucet: 8007
relayers:
- name: osmos-cosmos
type: hermes
replicas: 1
chains:
- osmosis-1
- cosmoshub-4
explorer:
enabled: true
ports:
rest: 8080
registry:
enabled: true
ports:
rest: 8081
Create a workflow (eg: .github/workflows/starship.yaml
):
name: Create Starship devnet
on: pull_request
jobs:
create-devnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create starship devnet for osmos and wasm
uses: hyperweb-io/[email protected]
with:
config: ./starship-config.yaml
-
Kubeconfig Issues
- If using a remote cluster, ensure the kubeconfig file is properly formatted
- Check that the kubeconfig has the correct permissions
-
Helm Chart Issues
- Verify the chart name and repository are correct
- Check that the specified version is available in the repository
-
Namespace Issues
- Ensure the namespace doesn't contain invalid characters
- Check that you have permissions to create/use the specified namespace
- Starship - Universal interchain development environment in k8s
- Cosmology - Interchain JavaScript Stack
🛠 Built by Hyperweb (formerly Cosmology) — if you like our tools, please checkout and contribute to our github ⚛️
MIT © Hyperweb