Skip to content

Commit

Permalink
Add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 29, 2024
1 parent e25938b commit 27d4ac6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-solana-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Solana Contract

on:
pull_request:
paths:
- target_chains/cosmwasm/**
- pythnet/pythnet_sdk/**
push:
branches:
- main
paths:
- target_chains/cosmwasm/**
- pythnet/pythnet_sdk/**

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: target_chains/solana
steps:
- uses: actions/checkout@v2
- name: Install Solana
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.16.20/install)"
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build
run: cargo-build-sbf
- name: Run tests
run: cargo-test-sbf

0 comments on commit 27d4ac6

Please sign in to comment.