Anchor Test
ActionsTags
(1)A fast, easy, and secure action for testing Anchor projects. Completes in ~1 minute.
Here's an example workflow:
name: example-workflow
on: [push]
jobs:
run-anchor-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: metadaoproject/anchor-test@v2
This will use the default versions of Anchor, Node.js, and the Solana CLI tools, which are 0.27.0, 16.15.1, and 1.15.2 respectively.
You can also configure these versions like so:
steps:
- uses: actions/checkout@v3
- uses: metadaoproject/anchor-test@v2
with:
anchor-version: '0.28.0'
solana-cli-version: '1.14.20'
node-version: '16.15.1'
You can pass in features to cargo via anchor test
by using the features
input:
steps:
- uses: actions/checkout@v3
- uses: metadaoproject/[email protected]
with:
anchor-version: '0.24.2'
solana-cli-version: '1.10.32'
node-version: '16.15.1'
features: 'my-feature'
This defaults to 'default'.
The scripts and documentation in this project are released under the MIT License.
Anchor Test is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.
Tags
(1)Anchor Test is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.