aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/metadata-diff.yml29
-rw-r--r--.github/workflows/stylua.yml1
2 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/metadata-diff.yml b/.github/workflows/metadata-diff.yml
new file mode 100644
index 00000000..9be6f3c2
--- /dev/null
+++ b/.github/workflows/metadata-diff.yml
@@ -0,0 +1,29 @@
+name: Metadata diff checker
+
+on:
+ schedule:
+ - cron: '0 * * * *'
+ push:
+ branches:
+ - 'main'
+ pull_request:
+
+jobs:
+ metadata-diff-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ version: v0.5.1
+ - name: Clone latest lspconfig
+ run: |
+ mkdir -p ~/.local/share/nvim/site/pack/packer/start
+ git clone --depth 1 https://github.com/neovim/nvim-lspconfig ~/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
+ - name: Run autogen_metadata.sh script
+ run: ./scripts/autogen_metadata.sh
+ - name: Ensure there are no diffs
+ run: |
+ git update-index --refresh
+ git diff-index --quiet HEAD --
diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml
index b4498d93..8fb28a28 100644
--- a/.github/workflows/stylua.yml
+++ b/.github/workflows/stylua.yml
@@ -14,6 +14,7 @@ jobs:
- name: Run Stylua check
uses: JohnnyMorganz/stylua-action@1.0.0
with:
+ # token is needed because the action allegedly downloads binary from github releases
token: ${{ secrets.GITHUB_TOKEN }}
# CLI arguments
args: --check .