aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/check-generated-code-state.yml
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-09 01:00:34 +0200
committerGitHub <noreply@github.com>2022-07-09 01:00:34 +0200
commitd132a7a673d43b2da73f75e09fbe7fb49c431514 (patch)
tree4b3b10d68ee149382d71b6977664bcb9d6dd2d20 /.github/workflows/check-generated-code-state.yml
parentfeat: add black (#34) (diff)
downloadmason-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.yml29
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;
+ }