-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.04 KB
/
lint.yaml
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
name: ci
on:
pull_request:
branches:
- master
jobs:
linting:
name: Lint Shell Scripts and Workflows
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup shfmt
uses: mfinelli/setup-shfmt@v2
- name: Run shfmt
run: |
# shellcheck disable=SC2046
shfmt -i 2 -ci -d $(shfmt -f . | grep -v '\.zsh$')
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
# - uses: JohnnyMorganz/stylua-action@v4
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# version: latest
# args: --check .
- uses: ludvighz/vint-action@v1
with:
path: config/vim/.vimrc