Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metadaoproject/anchor-test
A fast and easy GitHub action for testing your Solana Anchor project
https://github.com/metadaoproject/anchor-test
anchor solana
Last synced: about 1 month ago
JSON representation
A fast and easy GitHub action for testing your Solana Anchor project
- Host: GitHub
- URL: https://github.com/metadaoproject/anchor-test
- Owner: metaDAOproject
- License: mit
- Created: 2022-07-26T16:35:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T21:40:16.000Z (12 months ago)
- Last Synced: 2024-12-18T01:19:01.850Z (about 1 month ago)
- Topics: anchor, solana
- Homepage:
- Size: 44.9 KB
- Stars: 20
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Anchor Test
A fast, easy, and secure action for testing [Anchor](https://www.anchor-lang.com/) projects. Completes in ~1 minute.
## Usage
### Example workflow
Here's an example workflow:
```yaml
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.
### Configuring versions
You can also configure these versions like so:
```yaml
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'
```### Cargo Features
You can pass in features to cargo via `anchor test` by using the `features` input:
```yaml
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'.
## License
The scripts and documentation in this project are released under the [MIT License](LICENSE).