Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
makarychev committed Jul 8, 2024
1 parent 4c51521 commit 22cbc87
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on: [push]

jobs:
Test:
runs-on: [ubuntu-22.04]
env:
RUST_VERSION: 1.78.0
SOLANA_VERSION: 1.18.17
ANCHOR_VERSION: 0.30.1

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: Generate Key
run: solana-keygen new --no-passphrase

- name: Install Anchor
run: cargo install --git https://github.com/coral-xyz/anchor --tag v${{ env.ANCHOR_VERSION }} anchor-cli --locked

- name: Build Programs
run: anchor build

- name: Install Dependencies
run: yarn install

- name: JS Tests
run: anchor test

0 comments on commit 22cbc87

Please sign in to comment.