diff --git a/.github/workflows/pull_request_merge_checks.yaml b/.github/workflows/pull_request_merge_checks.yaml index d6333b6..50df0ca 100644 --- a/.github/workflows/pull_request_merge_checks.yaml +++ b/.github/workflows/pull_request_merge_checks.yaml @@ -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" diff --git a/in/specmatic/examples/store/common.yaml b/in/specmatic/examples/store/common.yaml index 7d3a3e0..90fc929 100644 --- a/in/specmatic/examples/store/common.yaml +++ b/in/specmatic/examples/store/common.yaml @@ -10,7 +10,7 @@ components: type: object properties: name: - type: string + type: number type: $ref: '#/components/schemas/ProductType' inventory: