OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Anchor Test

Anchor Test is a GitHub Actions action that runs tests for Solana Anchor projects through anchor test. Its workflow inputs let developers select Anchor, Solana CLI and Node.js versions and pass Cargo features.

Independent OpenViST project profile, based on linked sources.

Anchor Test — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a GitHub Actions workflow to run Anchor project tests, including on pushes, and need to configure the tool versions or Cargo features.

Who it is for

  • Developers maintaining Solana programs with Anchor.
  • Teams using GitHub Actions to run project tests on pushes.

Documented uses

  • Add Anchor test execution to a GitHub Actions workflow.
  • Choose the Anchor, Solana CLI and Node.js versions used by the action.
  • Pass Cargo features to anchor test.
Before you choose

Requirements & limits

  • The README example uses ubuntu-22.04 and actions/checkout@v3.
  • Documented defaults are Anchor 0.27.0, Solana CLI 1.15.2 and Node.js 16.15.1.
  • The features input passes Cargo features to anchor test and defaults to default.
  • The project states that its scripts and documentation are released under the MIT License.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Add Anchor Test to a GitHub Actions workflow

Configure a workflow to run Anchor project tests on pushes, with optional version and Cargo feature settings.

Before you start

  • A Solana Anchor project.
  • A GitHub Actions workflow.

Steps

  1. Add a workflow job that runs on ubuntu-22.04 and checks out the repository with actions/checkout@v3.

  2. Add metadaoproject/anchor-test@v2.3 as a step in the job.

  3. Optionally set anchor-version, solana-cli-version and node-version inputs to select tool versions.

  4. Optionally set the features input to pass Cargo features to anchor test; it defaults to default.

Expected outcome

The workflow is configured to run Anchor tests, using the action's defaults or the versions and Cargo features specified.

Guide limitations

  • The documented example runs on ubuntu-22.04.
  • The README describes the workflow configuration but does not document test-result handling or additional CI setup.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 October 2026
Original website title
metaDAOproject/anchor-test · Official homepage title · retained in its source language