ensure dlq topics have the same message size as their underlying topics #1061
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: json-schema-diff | |
on: | |
# We run this action on main to get cache artifacts. The json-schema-diff | |
# binary is not actually run in any way on main. | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
JSON_SCHEMA_DIFF_VERSION: 0.1.6 | |
jobs: | |
post_changes: | |
name: Post new JSON schema changes from migrations | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout master for diffing | |
with: | |
ref: main | |
- uses: actions/checkout@v3 | |
name: Checkout HEAD of code that may have migration changes | |
with: | |
clean: false | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- run: make install | |
- name: Cache json-schema-diff | |
id: cache-json-schema-diff-bin | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo/bin/json-schema-diff | |
key: ${{ runner.os }}-json-schema-diff-bin-v${{ env.JSON_SCHEMA_DIFF_VERSION }} | |
- name: Download and build json-schema-diff | |
if: steps.cache-json-schema-diff-bin.outputs.cache-hit != 'true' | |
run: | | |
cargo install json-schema-diff \ | |
--version $JSON_SCHEMA_DIFF_VERSION \ | |
--features build-binary | |
- name: Generate schema diff | |
if: github.event_name == 'pull_request' | |
uses: getsentry/action-migrations@v1.2.2 | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
useRawBody: "true" | |
# This parameter determines how comments are deduplicated/reused | |
migration: "json-schema-changes" | |
cmd: python ./scripts/json_schema_changes.py --no-exit-code | |
- name: Fail if any breaking changes found | |
if: github.event_name == 'pull_request' | |
run: python ./scripts/json_schema_changes.py |