Max/crates io prep v2 #413
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: Integration Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "nym-api/**" | |
| - "tests/**" | |
| workflow_dispatch: | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| API_BASE_URL: http://localhost:8000 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: ${{ vars.REQUIRED_RUSTC_VERSION }} | |
| override: true | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev | |
| - name: Build nym-api | |
| run: cargo build --package nym-api | |
| - name: Run nym-api in the background | |
| run: | | |
| ./target/debug/nym-api & | |
| - name: Wait for nym-api to come alive | |
| run: | | |
| for i in {1..20}; do | |
| curl -sSf http://localhost:8000/v1/status/config-score-details && break | |
| echo "Waiting for nym-api to start..." | |
| sleep 2 | |
| done | |
| - name: Run integration tests | |
| env: | |
| NYM_API: https://sandbox-nym-api1.nymtech.net/api | |
| run: cargo test --test public-api-tests -- --nocapture |