Skip to content

Commit

Permalink
chore: make test fail if generated docs is not up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed May 18, 2021
1 parent 372d954 commit fca03a8
Show file tree
Hide file tree
Showing 7 changed files with 996 additions and 47 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docs.yaml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ jobs:
- uses: actions/checkout@v2
- name: Generate code
run: go run ./cmd/scw-doc-gen
- name: Compute git status
run: gitStatus=$(git status --porcelain)
- name: Show git status
run: echo $gitStatus
- name: Error if non empty
run: "[ -z $gitStatus ]"
- name: Exit 1 if not empty
run: git diff --exit-code
Loading

0 comments on commit fca03a8

Please sign in to comment.