-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57951fe
commit f1ea5af
Showing
1 changed file
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
# - uses: ATiltedTree/[email protected] | ||
# 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/[email protected] | ||
- uses: ATiltedTree/[email protected] | ||
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 | ||
|