From d132a7a673d43b2da73f75e09fbe7fb49c431514 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 9 Jul 2022 01:00:34 +0200 Subject: chore(workflow): modularize scripts and remove mason-lspconfig from CI checks (#36) --- .github/workflows/check-generated-code-state.yml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check-generated-code-state.yml (limited to '.github/workflows/check-generated-code-state.yml') 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; + } -- cgit v1.2.3-70-g09d2