From 27d4ac6a0fb4970f48c9e914fbe6db8a974ae808 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Mon, 29 Jan 2024 18:26:14 +0000 Subject: [PATCH] Add ci --- .github/workflows/ci-solana-contract.yml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci-solana-contract.yml diff --git a/.github/workflows/ci-solana-contract.yml b/.github/workflows/ci-solana-contract.yml new file mode 100644 index 000000000..080ba7132 --- /dev/null +++ b/.github/workflows/ci-solana-contract.yml @@ -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