Skip to content
clock

GitHub Action

wait-for-mina-network

v1 Latest version

wait-for-mina-network

clock

wait-for-mina-network

GitHub Action to wait for the Mina network readiness

Installation

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

              

- name: wait-for-mina-network

uses: o1-labs/wait-for-mina-network-action@v1

Learn more about this action in o1-labs/wait-for-mina-network-action

Choose a version

GitHub Action to wait for the Mina network readiness

GitHub Super-Linter CI Check dist/ CodeQL Coverage

You can use this GitHub Action in your CI/CD pipelines to automate the network readiness checks when you use the o1labs/mina-local-network lightweight Mina Docker images as your job or jobs service container.

Example usage

...
jobs:
  my-job:
    ...
    services:
      mina-local-network:
        image: o1labs/mina-local-network:compatible-latest-lightnet
        env:
          NETWORK_TYPE: 'single-node'
          PROOF_LEVEL: 'none'
          LOG_LEVEL: 'Info'
        ports:
          - 3085:3085
          - 5432:5432
          - 8080:8080
          - 8181:8181
          - 8282:8282
      ...
    steps:
      - name: Wait for Mina network readiness
        uses: o1-labs/wait-for-mina-network-action@v1
        with:
          mina-graphql-port: 3085    # Default value
          max-attempts: 60           # Default value
          polling-interval-ms: 10000 # Default value
      ...