-
Notifications
You must be signed in to change notification settings - Fork 9
71 lines (62 loc) · 1.76 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
name: CI
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
# minute mulitpliers - linux: 1, windows: 2, macos: 10
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
nvim_version: ["stable", "nightly"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.nvim_version }}
- name: Run Tests
shell: bash
run: |
nvim --version
[ ! -d tests ] && exit 0
make test
docs:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v2
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: img-clip.nvim
pandoc: "vimdoc.md"
demojify: true
treesitter: true
titledatepattern: "%B %Y"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "chore(build): auto-generate vimdoc"
commit-message: "chore(build): auto-generate vimdoc"
branch: "docs-${{ github.run_id }}"
body: "This is an auto-generated PR with documentation updates."
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Luacheck linter
uses: lunarmodules/luacheck@v1
with:
args: lua/
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --color always --check lua/