NEAR Pyth Core Upgrade PR-A: vendor Wormhole NEAR core bridge + router guardian set #2169
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Solana Contract | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/ci-solana-contract.yml | |
| - target_chains/solana/** | |
| - pythnet/pythnet_sdk/** | |
| push: | |
| branches: | |
| - main | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: default | |
| features: "" | |
| - name: pro-compatible | |
| features: "--features pro-compatible" | |
| name: (${{ matrix.name }}) | |
| defaults: | |
| run: | |
| working-directory: target_chains/solana | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| cache-workspaces: "target_chains/solana -> target" | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install Solana | |
| run: | | |
| sh -c "$(curl -sSfL https://release.anza.xyz/v3.1.10/install)" | |
| echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| - name: Format check | |
| run: cargo fmt --all -- --check | |
| if: success() || failure() | |
| - name: Clippy check | |
| run: cargo clippy --all-targets --all-features -- --deny warnings | |
| if: success() || failure() | |
| - name: Build | |
| run: | | |
| cargo build-sbf --manifest-path programs/pyth-solana-receiver/Cargo.toml ${{ matrix.features }} | |
| cargo build-sbf --manifest-path programs/pyth-push-oracle/Cargo.toml ${{ matrix.features }} | |
| cargo build-sbf --manifest-path programs/core-bridge/Cargo.toml ${{ matrix.features }} | |
| if: success() || failure() | |
| - name: Run tests | |
| run: cargo-test-sbf ${{ matrix.features }} | |
| if: success() || failure() | |
| - name: Run sdk tests | |
| run: cargo test --package pyth-solana-receiver-sdk ${{ matrix.features }} | |
| if: success() || failure() |