Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore API versioning check in CI #366

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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