Skip to content

Commit

Permalink
re-enabled the shemathesis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 10, 2022
1 parent 57951fe commit f1ea5af
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/server.yml
Expand Up @@ -79,34 +79,33 @@ jobs:
permissions:
contents: read
packages: write
# commented out until https://github.com/schemathesis/schemathesis/issues/1614 is fixed
#api-tests:
# runs-on: ubuntu-20.04
# services:
# mieli:
# image: ghcr.io/tum-dev/navigatum-mieli-search:main
# # TODO get the tags from ${{ needs.mieli-search-build.outputs.tags }}
# ports:
# - 7700
# steps:
# - uses: actions/checkout@v3.0.0
# - uses: ATiltedTree/setup-rust@v1.0.5
# with:
# rust-version: 1.62.1
# # run project's dependencies
# - run: cargo build
# working-directory: server
# - run: cargo run &
# working-directory: server
#
# # Runs Schemathesis tests with all checks enabled
# - uses: schemathesis/action@v1
# with:
# token: ${{ secrets.SCHEMATHESIS_TOKEN }}
# api-name: navigatum
# schema: "./openapi.yaml"
# base-url: "http://localhost:8080"
# args: "--endpoint='/api/[^f].*'" # disable the feedbacks endpoint
api-tests:
runs-on: ubuntu-20.04
services:
mieli:
image: ghcr.io/tum-dev/navigatum-mieli-search:main
# TODO get the tags from ${{ needs.mieli-search-build.outputs.tags }}
ports:
- 7700
steps:
- uses: actions/checkout@v3.0.0
- uses: ATiltedTree/setup-rust@v1.0.5
with:
rust-version: 1.62.1
# run project's dependencies
- run: cargo build
working-directory: server
- run: cargo run &
working-directory: server

# Runs Schemathesis tests with all checks enabled
- uses: schemathesis/action@v1
with:
token: ${{ secrets.SCHEMATHESIS_TOKEN }}
api-name: navigatum
schema: "./openapi.yaml"
base-url: "http://localhost:8080"
args: "--endpoint='/api/[^f].*'" # disable the feedbacks endpoint
server-deployment:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
Expand Down

0 comments on commit f1ea5af

Please sign in to comment.