-
Notifications
You must be signed in to change notification settings - Fork 15
111 lines (82 loc) · 2.32 KB
/
ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
yaml-lint:
name: 'Lint: Yaml'
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run yamllint
uses: karancode/[email protected]
with:
yamllint_file_or_dir: '.'
yamllint_strict: true
yamllint_config_filepath: config/yamllint/config
ruby-lint:
name: 'Lint: Ruby'
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
- name: RuboCop Linter Action
uses: andrewmcodes/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lua-formatting:
name: 'Format: Lua'
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run stylua check
uses: JohnnyMorganz/stylua-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 0.15.1
args: --check .
lua-diagnotics:
name: 'Diagnostics: Lua'
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install ASDF
uses: asdf-vm/actions/setup@v1
- name: ASDF Plugin Add
run: |
asdf plugin add lua-language-server https://github.com/shun-shobon/asdf-lua-language-server.git
- name: ASDF Install
uses: asdf-vm/actions/install@v1
- name: Run Diagnostics Check
run: |
lua-language-server --check config/nvim/lua --checklevel=Warning
shell-lint:
name: 'Lint: Shell'
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ShellCheck
uses: ludeeus/action-shellcheck@b2bbefc2e6b9dcbc6355b85e366c9e55bf8d57e1
with:
ignore_paths: './iterm/TerminalVim.app/'
ignore_names: '*/**/*.zsh zshrc'
spelling:
name: 'Lint: Spelling'
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check spelling in code
# yamllint disable-line rule:line-length
uses: codespell-project/actions-codespell@2391250ab05295bddd51e36a8c6295edb6343b0e