AutoMock API Tests #16
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
| # 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 |