fix: don't override psalm cmd (#477) #924
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: Check generated code state | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
check-generated-code-state: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: v0.10.1 | |
- name: make generate | |
run: make generate | |
- name: Ensure there are no diffs | |
run: | | |
git update-index -q --refresh | |
git diff | |
git diff-index --exit-code --quiet HEAD -- || { | |
echo '::error::Generated code is not up to date, run "make generate".'; | |
exit 1; | |
} |