|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 | pull_request: |
| 8 | + workflow_dispatch: |
8 | 9 |
|
9 | 10 | env: |
10 | 11 | CARGO_TERM_COLOR: always |
@@ -130,3 +131,57 @@ jobs: |
130 | 131 | - name: Test |
131 | 132 | working-directory: solana |
132 | 133 | run: just test |
| 134 | + |
| 135 | + solana-bridge-tests: |
| 136 | + name: Solana Bridge Tests |
| 137 | + runs-on: ubuntu-latest |
| 138 | + timeout-minutes: 25 |
| 139 | + strategy: |
| 140 | + fail-fast: false |
| 141 | + matrix: |
| 142 | + test: |
| 143 | + - name: solana_listener_catchup |
| 144 | + localosmosis: false |
| 145 | + - name: bridge_transfer |
| 146 | + localosmosis: true |
| 147 | + steps: |
| 148 | + - name: Checkout |
| 149 | + uses: actions/checkout@v4 |
| 150 | + - name: Install dependencies |
| 151 | + uses: awalsh128/cache-apt-pkgs-action@v1 |
| 152 | + with: |
| 153 | + packages: libudev-dev libusb-1.0-0-dev libhidapi-dev mold |
| 154 | + - uses: taiki-e/install-action@v2 |
| 155 | + with: |
| 156 | + |
| 157 | + - name: Rust cache |
| 158 | + uses: Swatinem/rust-cache@v2 |
| 159 | + with: |
| 160 | + prefix-key: "v1-solana-bridge-tests" |
| 161 | + cache-workspace-crates: true |
| 162 | + # https://github.com/Swatinem/rust-cache/issues/237 |
| 163 | + cache-bin: false |
| 164 | + workspaces: | |
| 165 | + . |
| 166 | + - name: Cache solana binaries |
| 167 | + uses: actions/cache@v4 |
| 168 | + id: solana-cache |
| 169 | + with: |
| 170 | + key: solana-${{ hashFiles('solana/justfile') }} |
| 171 | + restore-keys: | |
| 172 | + solana |
| 173 | + path: | |
| 174 | + ~/.cargo/bin |
| 175 | + - name: Setup solana |
| 176 | + if: steps.solana-cache.outputs.cache-hit == 'false' || steps.solana-cache.outputs.cache-hit == '' |
| 177 | + working-directory: solana |
| 178 | + run: just download-solana |
| 179 | + - name: Start localosmosis |
| 180 | + if: ${{ matrix.test.localosmosis }} |
| 181 | + run: just localosmosis |
| 182 | + - name: Start solana-test-validator |
| 183 | + working-directory: solana |
| 184 | + run: just solana-test-validator |
| 185 | + - name: Run ${{ matrix.test.name }} test |
| 186 | + working-directory: packages/integration-tests |
| 187 | + run: RUST_LOG=info,kolme=debug,six_sigma=debug cargo t ${{ matrix.test.name }} -- --ignored --nocapture |
0 commit comments