feat: Some fixes post discussions with Audit & others (#225) #278
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: Rust Integration Tests | |
on: | |
push: | |
branches: [main, "release/*"] | |
paths: | |
- "crates/**" | |
- "tests/**" | |
- "Cargo.*" | |
- "Makefile" | |
- "makefiles/**" | |
- ".github/workflows/rust.yml" | |
- ".github/workflows/build-rust.yml" | |
- ".github/actions/run-test-runner/**" | |
pull_request: | |
branches: [main, "release/*"] | |
paths: | |
- "crates/**" | |
- "tests/**" | |
- "Cargo.*" | |
- "Makefile" | |
- "makefiles/**" | |
- ".github/workflows/rust.yml" | |
- ".github/workflows/build-rust.yml" | |
- ".github/actions/run-test-runner/**" | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_LOG: info | |
CI: true | |
jobs: | |
build: | |
name: Build Artifacts | |
uses: ./.github/workflows/build-rust.yml | |
with: | |
cache-key: "rust-integration-build" | |
artifact-name: "rust-binaries" | |
integration: | |
name: Integration Tests | |
runs-on: ubuntu-latest | |
needs: build | |
timeout-minutes: 25 | |
strategy: | |
fail-fast: false | |
matrix: | |
test-group: [regular, auth, payment_address, multi_signer] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "rust-integration" | |
- name: Download build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ needs.build.outputs.artifact-name }} | |
path: target/debug/ | |
- name: Make binaries executable | |
run: chmod +x target/debug/kora target/debug/test_runner | |
- name: Setup Solana CLI | |
uses: ./.github/actions/setup-solana | |
- name: Run integration tests | |
uses: ./.github/actions/run-test-runner | |
with: | |
filters: "--filter ${{ matrix.test-group }}" | |
- name: Cleanup test environment | |
if: always() | |
uses: ./.github/actions/cleanup-test-env | |
- name: Show failure logs | |
if: failure() | |
uses: ./.github/actions/show-failure-logs | |
with: | |
test-type: "Rust integration (${{ matrix.test-group }})" |