Skip to content

Commit

Permalink
Restore API versioning check in CI (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 authored Feb 13, 2024
1 parent 8fd494f commit b29edf7
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,27 +260,27 @@ jobs:
_build/test
priv/plts
key: ${{ runner.os }}-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('mix.lock') }}
# - name: Generate main openapi.json
# run: |
# mix openapi.spec.json --start-app=false --spec WandaWeb.Schemas.${{ matrix.version }}.ApiSpec /tmp/specs/main-spec.json
# - name: Locate generated specs
# run: mv /tmp/specs .
# - name: Find difference between OpenAPI specifications
# run: |
# docker run -v "$(pwd)/specs:/specs" --rm openapitools/openapi-diff:2.0.1 \
# /specs/main-spec.json \
# /specs/current-spec.json \
# --fail-on-incompatible \
# --markdown /specs/changes.md \
# --json /specs/changes.json \
# --text /specs/changes.txt \
# --html /specs/changes.html
# - name: Upload OpenAPI diff report
# uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: openapi-diff-report-${{ matrix.version }}
# path: specs/
- name: Generate main openapi.json
run: |
mix openapi.spec.json --start-app=false --spec WandaWeb.Schemas.${{ matrix.version }}.ApiSpec /tmp/specs/main-spec.json
- name: Locate generated specs
run: mv /tmp/specs .
- name: Find difference between OpenAPI specifications
run: |
docker run -v "$(pwd)/specs:/specs" --rm openapitools/openapi-diff:2.0.1 \
/specs/main-spec.json \
/specs/current-spec.json \
--fail-on-incompatible \
--markdown /specs/changes.md \
--json /specs/changes.json \
--text /specs/changes.txt \
--html /specs/changes.html
- name: Upload OpenAPI diff report
uses: actions/upload-artifact@v4
if: failure()
with:
name: openapi-diff-report-${{ matrix.version }}
path: specs/

build-and-push-container-images:
name: Build and push container images
Expand Down

0 comments on commit b29edf7

Please sign in to comment.