Skip to content

add solana keygen new to CI #4

add solana keygen new to CI

add solana keygen new to CI #4

Workflow file for this run

name: Test
on: [push]
jobs:
Test:
runs-on: [ubuntu-22.04]
env:
RUST_VERSION: 1.77.0
SOLANA_VERSION: 1.18.12
ANCHOR_VERSION: 0.30.0
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/setup-solana@v1.0
with:
solana-cli-version: ${{ env.SOLANA_VERSION }}
- name: Generate Key
run: solana-keygen new
- name: Install Anchor
run: cargo install --git https://github.com/coral-xyz/anchor --tag v${{ env.ANCHOR_VERSION }} anchor-cli --locked
- name: Build
run: anchor build
- name: Test
run: anchor test