Skip to content

add anchor test to ci #10

add anchor test to ci

add anchor test to ci #10

Workflow file for this run

---
name: Solana_Build
on: [push]
jobs:
Test:
runs-on: [ubuntu-22.04]
env:
RUST_VERSION: 1.77.0
SOLANA_VERSION: 1.18.8
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy
- name: Install Solana
uses: metadaoproject/[email protected]
with:
solana-cli-version: ${{ env.SOLANA_VERSION }}
- name: Check Solana Version
run: |
solana --version
solana config set --url localhost
- name: Install Anchor
run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.29.0 anchor-cli --locked
- name: Build
run: anchor build
# TODO: fix keypair issue (generate and detect by anchor)
- name: Anchor Tests
run: |
./ci/build-and-test.sh