Skip to content

Commit

Permalink
validate swagger (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman authored Jun 4, 2024
1 parent 59dbe5e commit a3787b0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/queue_and_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
with:
cache: true
- run: just clippy

validate-swagger:
runs-on: ubuntu-latest
name: Validate Swagger

steps:
- uses: actions/checkout@v4
- name: Validate OpenAPI definition
uses: char0n/[email protected]
with:
definition-file: swagger.yml

format:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
Expand Down Expand Up @@ -123,7 +134,7 @@ jobs:
cache-to: type=gha,mode=max

can_enqueue:
needs: [Clippy, Format, Build]
needs: [clippy, format, build, validate-swagger]
if: always() && github.event_name != 'merge_group'
permissions:
actions: read
Expand All @@ -138,7 +149,7 @@ jobs:
run: "[ $ALL_SUCCESS == true ]"

can_merge:
needs: [Clippy, Format, Docker]
needs: [clippy, format, docker, validate-swagger]
if: always() && github.event_name == 'merge_group'
permissions:
contents: read
Expand Down

0 comments on commit a3787b0

Please sign in to comment.