name: Integration Tests on: pull_request: paths: - "nym-api/**" - "tests/**" workflow_dispatch: jobs: integration-tests: runs-on: arc-linux-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