Skip to content

Commit

Permalink
Ensure generated code is up-to-date in CI.
Browse files Browse the repository at this point in the history
To avoid forgetting running `go generate` before merging.
  • Loading branch information
tcard committed Feb 25, 2021
1 parent 1df14a2 commit bc19d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Vet
run: go vet ./ably/... ./scripts/...

- name: Ensure generated code is up-to-date
run: go generate ./... && [ -z "$(git status --porcelain)" ]

- name: Test with JSON Protocol
env:
ABLY_PROTOCOL: application/json
Expand Down

0 comments on commit bc19d9f

Please sign in to comment.