Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add test_api job #220

Merged
merged 6 commits into from
Jan 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wrap line and trim trailing spaces
  • Loading branch information
cmil committed Jan 7, 2024
commit 9b1f37feee2ab4b2336d24ac60d3083aa3c33f51
9 changes: 5 additions & 4 deletions .github/workflows/test_api.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ permissions:
env:
COMPOSE_FILE: compose.yml:compose.t.yml
DOCKER_BUILDKIT: 1
FORCE_COLOR: 1
FORCE_COLOR: 1

jobs:
test_api:
@@ -25,7 +25,7 @@ jobs:
- name: Test if /info returns a response
run: curl --verbose http://localhost:8080/exist/restxq/v1/info
- name: Add test corpus
run: |
run: |
curl \
--request POST \
--url http://localhost:8080/exist/restxq/v1/corpora \
@@ -49,14 +49,15 @@ jobs:
# Refs:
# https://github.com/schemathesis/action#configuration
# https://schemathesis.readthedocs.io/en/stable/cli.html
uses: schemathesis/action@cd782ab11a0ae6358e38b7adaaf942a53dbe9368 # v1.0.3
uses: schemathesis/action@cd782ab11a0ae6358e38b7adaaf942a53dbe9368 # v1.0.3
with:
schema: http://localhost:8080/exist/restxq/v1/openapi.yaml
base-url: http://localhost:8080/exist/restxq/v1/
# OPTIONAL. Your Schemathesis.io token
token: ${{ secrets.SCHEMATHESIS_TOKEN }}
# OPTIONAL. List of Schemathesis checks to run. Defaults to `all`
# if multiple checks should be used, use a comma seperated string, e.g. "not_a_server_error,status_code_conformance"
# if multiple checks should be used, use a comma seperated string,
# e.g. "not_a_server_error,status_code_conformance"
checks: not_a_server_error
# OPTIONAL. Whether you'd like to see the results in a Web UI
# Defaults to `true`