diff options
| author | William Boman <william@redwill.se> | 2022-07-09 01:00:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-09 01:00:34 +0200 |
| commit | d132a7a673d43b2da73f75e09fbe7fb49c431514 (patch) | |
| tree | 4b3b10d68ee149382d71b6977664bcb9d6dd2d20 /.github/workflows/check-generated-code-state.yml | |
| parent | feat: add black (#34) (diff) | |
| download | mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.gz mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.bz2 mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.lz mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.xz mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.zst mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.zip | |
chore(workflow): modularize scripts and remove mason-lspconfig from CI checks (#36)
Diffstat (limited to '.github/workflows/check-generated-code-state.yml')
| -rw-r--r-- | .github/workflows/check-generated-code-state.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/check-generated-code-state.yml b/.github/workflows/check-generated-code-state.yml new file mode 100644 index 00000000..e79e14fb --- /dev/null +++ b/.github/workflows/check-generated-code-state.yml @@ -0,0 +1,29 @@ +name: Check generated code state + +on: + push: + branches: + - "alpha" + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: v0.7.0 + + - 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; + } |
