aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/metadata-diff.yml
blob: ddc129ac5a1269bc9e31ae7fd3c711ab46a4fde4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Metadata diff checker

on:
    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.7.0

            - name: Clone dependencies
              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 --