Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
makarychev committed Mar 26, 2024
1 parent b1a728c commit 5d18122
Showing 1 changed file with 40 additions and 15 deletions.
55 changes: 40 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,41 @@
name: anchor-test
on:
push:
branches:
- main
pull_request:
---
name: Solana_Build

on: [push]

jobs:
Test:
runs-on: [ubuntu-22.04]
env:
RUST_VERSION: 1.77.0
SOLANA_VERSION: 1.18.8

jobs:
run-anchor-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: metadaoproject/[email protected]
with:
anchor-version: '0.29.0'
solana-cli-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: npm i -g @project-serum/[email protected]

- name: Build
run: anchor build

- name: Build
run: anchor test

0 comments on commit 5d18122

Please sign in to comment.