|
4 | 4 | pull_request: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - test: |
| 7 | + anchor-test: |
8 | 8 | name: Anchor Test |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | defaults: |
11 | 11 | run: |
12 | | - working-directory: svm |
| 12 | + working-directory: svm/anchor |
13 | 13 | steps: |
14 | 14 | - uses: actions/checkout@v4 |
15 | 15 | - name: Get solana version |
|
29 | 29 | node-version: "22.16.0" |
30 | 30 | anchor-version: "${{steps.anchor.outputs.version}}" |
31 | 31 | solana-cli-version: "${{steps.solana.outputs.version}}" |
32 | | - working-directory: "svm" |
| 32 | + working-directory: "svm/anchor" |
33 | 33 |
|
34 | 34 | - run: cargo fmt --check --all |
35 | 35 | - run: cargo clippy |
36 | 36 | - run: cargo test |
| 37 | + |
| 38 | + pinocchio-test: |
| 39 | + name: Pinocchio Test |
| 40 | + runs-on: ubuntu-latest |
| 41 | + defaults: |
| 42 | + run: |
| 43 | + working-directory: svm/pinocchio |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - name: Install Rust |
| 47 | + uses: dtolnay/rust-toolchain@stable |
| 48 | + with: |
| 49 | + toolchain: nightly-2025-04-14 |
| 50 | + components: rustfmt, clippy |
| 51 | + - name: Install Solana CLI |
| 52 | + run: | |
| 53 | + sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.17/install)" |
| 54 | + echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH |
| 55 | + - name: Generate test keypair |
| 56 | + run: | |
| 57 | + mkdir -p ../test-keys |
| 58 | + solana-keygen new --no-bip39-passphrase -o ../test-keys/quoter-updater.json |
| 59 | + echo "QUOTER_UPDATER_PUBKEY=$(solana-keygen pubkey ../test-keys/quoter-updater.json)" >> $GITHUB_ENV |
| 60 | + echo "QUOTER_UPDATER_KEYPAIR_PATH=${{ github.workspace }}/svm/test-keys/quoter-updater.json" >> $GITHUB_ENV |
| 61 | + - name: Build pinocchio programs |
| 62 | + run: | |
| 63 | + cargo build-sbf --manifest-path programs/executor-quoter/Cargo.toml |
| 64 | + cargo build-sbf --manifest-path programs/executor-quoter-router/Cargo.toml |
| 65 | + - name: Build anchor executor program |
| 66 | + working-directory: svm/anchor |
| 67 | + run: | |
| 68 | + cargo build-sbf --manifest-path programs/executor/Cargo.toml |
| 69 | + cp target/deploy/executor.so ../pinocchio/target/deploy/ |
| 70 | + - run: cargo fmt --check --all |
| 71 | + - run: cargo clippy --all-targets |
| 72 | + - name: Run tests |
| 73 | + env: |
| 74 | + SBF_OUT_DIR: ${{ github.workspace }}/svm/pinocchio/target/deploy |
| 75 | + run: cargo test -p executor-quoter -p executor-quoter-tests -p executor-quoter-router-tests |
0 commit comments