Skip to content

Commit

Permalink
improve error messages in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 10, 2024
1 parent e484083 commit 4931206
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci-testing-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ jobs:
run: |
uv venv .venv && source .venv/bin/activate
make openapi-specs
./ci/github/helpers/openapi-specs-diff.bash diff \
if !./ci/github/helpers/openapi-specs-diff.bash diff \
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/refs/heads/${{ github.event.pull_request.head.ref }} \
.
.; then \
echo "::error OAS are not up to date. Run 'make openapi-specs' to update them"; \
fi
api-server-backwards-compatibility:
api-server-oas-breaking:
needs: api-specs
timeout-minutes: 10
name: "api-server backwards compatibility"
Expand All @@ -62,7 +64,7 @@ jobs:
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }}/services/api-server/openapi.json \
/specs/services/api-server/openapi.json
oas-backwards-compatibility:
all-oas-breaking:
needs: api-specs
continue-on-error: true
timeout-minutes: 10
Expand Down

0 comments on commit 4931206

Please sign in to comment.