Tweak order response fields #1
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
| # Auto-generated by keploy scaffold_pipeline_workflow — edit freely. | |
| # Replays linked sandbox test suites for orderflow.producer on every pull request. | |
| name: Keploy Sandbox Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| keploy-sandbox: | |
| runs-on: ubuntu-latest | |
| # Single source of truth for per-app values. Change any of these | |
| # without hunting through the steps below. | |
| env: | |
| COMPOSE_FILE: docker-compose.yml | |
| APP_SERVICE: producer | |
| CONTAINER_NAME: orderflow-producer | |
| APP_ID: b7547074-4a0f-4ff7-889c-733dc9909abd | |
| APP_PORT: "8080" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install keploy enterprise | |
| run: | | |
| curl --silent -O -L https://keploy.io/ent/install.sh | |
| sudo bash install.sh | |
| keploy --version | |
| - name: Bring up app dependencies | |
| run: | | |
| docker compose -f "$COMPOSE_FILE" up -d --wait | |
| docker compose -f "$COMPOSE_FILE" stop "$APP_SERVICE" | |
| docker compose -f "$COMPOSE_FILE" rm -f "$APP_SERVICE" | |
| - name: Run keploy sandbox tests | |
| env: | |
| KEPLOY_API_KEY: ${{ secrets.KEPLOY_API_KEY }} | |
| run: | | |
| keploy test sandbox \ | |
| -c "docker compose -f $COMPOSE_FILE up $APP_SERVICE" \ | |
| --container-name "$CONTAINER_NAME" \ | |
| --pipeline \ | |
| --cloud-app-id "$APP_ID" \ | |
| --app-url "http://localhost:$APP_PORT" \ | |
| --branch "${{ github.head_ref }}" | |
| - name: Upload keploy reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: keploy-reports | |
| path: keploy/reports | |
| if-no-files-found: ignore | |
| - name: Dump compose logs on failure | |
| if: failure() | |
| run: docker compose -f "$COMPOSE_FILE" logs --tail=200 | |
| - name: Tear down | |
| if: always() | |
| run: docker compose -f "$COMPOSE_FILE" down -v |