Skip to content

Commit f516b7a

Browse files
committed
ci: restructure, switch to adamperkowski/commits
1 parent eeedcd7 commit f516b7a

4 files changed

Lines changed: 43 additions & 52 deletions

File tree

.github/workflows/checks.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: checks
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
lua:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- name: download stylua
16+
run: |
17+
curl -L https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux-x86_64.zip -o stylua.zip
18+
unzip stylua.zip
19+
chmod +x stylua
20+
- name: stylua
21+
run: ./stylua --check . --indent-type spaces
22+
- name: luacheck
23+
uses: lunarmodules/luacheck@v1
24+
with:
25+
args: . --globals vim
26+
typos:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v6
30+
- name: typos
31+
uses: crate-ci/typos@v1
32+
commit-message:
33+
name: commit message
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v6
37+
- name: check commit message
38+
uses: adamperkowski/commits@main
39+
with:
40+
scopes: 'syntax,cmp,commands,ftplugin,ftdetect,doc,ci,chore'

.github/workflows/lua.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/typos.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

_typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[files]
22
extend-exclude = ["CHANGELOG.md"]
3+
4+
[default]
5+
extend-words = { noet = "noet" }

0 commit comments

Comments
 (0)