-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1 KB
/
lint.yml
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
31
32
33
34
35
36
37
38
39
name: lint
on:
push:
branches:
- "*"
jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.x
uses: actions/setup-python@v5
with:
python-version: "3.x"
architecture: "x64"
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install required packages
run: |
sudo apt install shellcheck
pip install --upgrade pip
pip install setuptools
pip install vim-vint
- name: Check deploy.sh
run: shellcheck ${GITHUB_WORKSPACE}/deploy.sh
- name: Check init.vim
run: vint ${GITHUB_WORKSPACE}/config/nvim/*.vim -cstV --enable-neovim
- name: Chek toml
run: |
curl -sL https://raw.githubusercontent.com/vmchale/tomlcheck/master/sh/check | sh || true
find ${GITHUB_WORKSPACE}/config/nvim/*.toml -type f | xargs -I {} ${GITHUB_WORKSPACE}/tomlcheck --file {}