feat: mock TEE prover and mock TEE registry deploy #71
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: E2E Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| e2e-settlement: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: "1.91" | |
| - name: Cache Cargo dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Run settlement E2E tests | |
| run: cargo test -p saya-e2e --test settlement -- --nocapture --test-threads=1 | |
| - name: Collect logs on failure | |
| if: failure() | |
| run: | | |
| docker compose logs > /tmp/compose-logs-settlement.txt | |
| docker compose ps | |
| cat /tmp/compose-logs-settlement.txt | |
| - name: Upload logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compose-logs-settlement | |
| path: /tmp/compose-logs-settlement.txt | |
| - name: Cleanup | |
| if: always() | |
| run: docker compose down -v 2>/dev/null || true | |
| e2e-messaging: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: "1.91" | |
| - name: Cache Cargo dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| # The test binary manages the compose lifecycle itself (compose_up / ComposeGuard). | |
| # No docker compose up step needed here. | |
| - name: Run messaging E2E tests | |
| run: cargo test -p saya-e2e --test messaging -- --nocapture --test-threads=1 | |
| - name: Collect logs on failure | |
| if: failure() | |
| run: | | |
| docker compose logs > /tmp/compose-logs-messaging.txt | |
| docker compose ps | |
| cat /tmp/compose-logs-messaging.txt | |
| - name: Upload logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compose-logs-messaging | |
| path: /tmp/compose-logs-messaging.txt | |
| # Safety net in case the test process is killed before ComposeGuard runs. | |
| - name: Cleanup | |
| if: always() | |
| run: docker compose down -v 2>/dev/null || true |