aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/metadata-diff.yml
blob: 024c8b6197a0f0b4f135cdf9ce7c83dba714842b (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
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.6.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 --