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

Add breaking change in common.yaml #11

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
13 changes: 12 additions & 1 deletion .github/workflows/pull_request_merge_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,22 @@ jobs:
run: |
echo "Running Spectral linter on: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
spectral lint in/**/*.yaml


- name: Create environment file
run: |
echo "GITHUB_REF=${{ github.ref }}" >> env.list
echo "GITHUB_SHA=${{ github.sha }}" >> env.list
echo "GITHUB_REPOSITORY=${{ github.repository }}" >> env.list
echo "GITHUB_ACTOR=${{ github.actor }}" >> env.list
echo "GITHUB_WORKFLOW=${{ github.workflow }}" >> env.list
echo "GITHUB_HEAD_REF=${{ github.head_ref }}" >> env.list
echo "GITHUB_BASE_REF=${{ github.base_ref }}" >> env.list

- name: Run backward compatibility check on changed files
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: |
docker run -v "$(pwd):/central-contract-repo:rw" \
--env-file env.list \
--entrypoint /bin/sh znsio/specmatic \
-c "git config --global --add safe.directory /central-contract-repo && cd /central-contract-repo && java -jar /usr/src/app/specmatic.jar backwardCompatibilityCheck"

2 changes: 1 addition & 1 deletion in/specmatic/examples/store/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ components:
type: object
properties:
name:
type: string
type: number
type:
$ref: '#/components/schemas/ProductType'
inventory:
Expand Down
Loading