diff --git a/.github/open-api-tavern-coverage.md.tpl b/.github/open-api-tavern-coverage.md.tpl new file mode 100644 index 0000000..3dcc1e4 --- /dev/null +++ b/.github/open-api-tavern-coverage.md.tpl @@ -0,0 +1,29 @@ + + +# Open-API Tavern Coverage Report + + + + + + + + +{{- range $endpoint := .endpoints }} + + + + + {{- if eq $endpoint.count 0 }} + + {{- end}} + {{- if eq $endpoint.count 1 }} + + {{- end}} + {{- if gt $endpoint.count 1 }} + + {{- end}} + +{{- end}} + +
EndpointMethodTest Case CountStatus
{{$endpoint.url}}{{$endpoint.method}}{{$endpoint.count}}:x::warning::white_check_mark:
\ No newline at end of file diff --git a/.github/workflows/run_open-api-tavern-coverage.yaml b/.github/workflows/run_open-api-tavern-coverage.yaml new file mode 100644 index 0000000..000e8f0 --- /dev/null +++ b/.github/workflows/run_open-api-tavern-coverage.yaml @@ -0,0 +1,14 @@ +name: Run Open-API Tavern Coverage +on: + - push # Perform a build of the contents from the branch + - pull_request # Perform a build after merging with the target branch + - workflow_dispatch +jobs: + build_and_release: + uses: Cray-HPE/open-api-tavern-coverage/.github/workflows/run_open-api-tavern-coverage.yaml@v1 + #the v1 tag exists now + with: + open-api-file: "api/swagger.yaml" + tavern-file-dir: "test/ct/functional" + api-target-urls: "{bss_base_url}" +