Skip to content

Commit

Permalink
Add backward-compatibility check to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Feb 22, 2024
1 parent 096596b commit 4536dda
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ CHLOGGEN_CONFIG := .chloggen/config.yaml
# Keep links in model/README.md and .vscode/settings.json in sync!
SEMCONVGEN_VERSION=0.23.0

LASTEST_RELEASED_SEMCONV_VERSION=1.24.0

# TODO: add `yamllint` step to `all` after making sure it works on Mac.
.PHONY: all
all: install-tools markdownlint markdown-link-check misspell table-check schema-check \
all: install-tools markdownlint markdown-link-check misspell table-check compatibility-check schema-check \
check-file-and-folder-names-in-docs

.PHONY: check-file-and-folder-names-in-docs
Expand Down Expand Up @@ -103,6 +105,11 @@ table-check:
docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec \
otel/semconvgen:$(SEMCONVGEN_VERSION) -f /source markdown -md /spec --md-check --md-use-badges --md-stable

.PHONY: compatibility-check
compatibility-check:
docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec \
otel/semconvgen:$(SEMCONVGEN_VERSION) -f /source compatibility --previous-version ${LASTEST_RELEASED_SEMCONV_VERSION} --ignore-warnings

.PHONY: schema-check
schema-check:
$(TOOLS_DIR)/schema_check.sh
Expand Down

0 comments on commit 4536dda

Please sign in to comment.