Skip to content

Commit

Permalink
Report Gherkin diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Nov 10, 2021
1 parent b7c12f3 commit e3a2746
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Prepare Gherkin exec environ
run: make init-all -C tests
- name: Check Gherkin feature format
run: make check -C tests
run: make check-and-diff -C tests

build:
name: build
Expand Down
5 changes: 5 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ fmt:
check:
@find $(CURR_DIR)/tck/ -type f -iname "*.feature" -print | xargs $(gherkin_fmt) --check

check-and-diff:
@(find $(CURR_DIR)/tck/ -type f -iname '*.feature' -print | xargs $(gherkin_fmt)) 2>&1 | tee .gherkin_fmt
@git diff
@tail -1 .gherkin_fmt | grep -qv ,

up: clean
@mkdir -p $(CURR_DIR)/.pytest
$(run_test) --cmd=start \
Expand Down

0 comments on commit e3a2746

Please sign in to comment.