Skip to content

AutoMock API Tests

AutoMock API Tests #15

# This workflow allows overriding of the API-version to test
name: PR-Tests
on:
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
api-version:
description: 'Version of API to test'
required: false
type: string
env:
KEY_HEADER: "X-API-KEY: ${{secrets.API_HUB_FOR_TEST_TOKEN}}"
PAYLOAD: "{ \"gitHub\": { \"owner\": \"smartbear-devrel\", \"repo\": \"webinar-collaborative-api-delivery-fintech\", \"sha\": \"${{ github.event.pull_request.head.sha }}\" }, \"variables\":{\"api-version\":\"${{ github.event.inputs.api-version || '1.0.0-prod' }}\"} }"
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Run Reflect tests
run: curl
--no-fail
-X POST
-H "$KEY_HEADER"
-d "$PAYLOAD"
-s
https://api.reflect.run/v1/suites/smartbear-coin-api-regression-tests/executions