Skip to content

Commit 12bc776

Browse files
committed
Reworking workflows
1 parent ffdf35d commit 12bc776

5 files changed

Lines changed: 10 additions & 301 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,41 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
15-
- name: Install Lua
16-
uses: leafo/gh-actions-lua@v9
17-
with:
18-
luaVersion: "5.3"
19-
20-
- name: Install LuaRocks
21-
uses: leafo/gh-actions-luarocks@v4
22-
23-
- name: Create cache directories
24-
run: mkdir -p ~/.luarocks
25-
26-
- name: Cache LuaRocks dependencies
27-
uses: actions/cache@v3
28-
with:
29-
path: ~/.luarocks
30-
key: ${{ runner.os }}-luarocks-${{ hashFiles('**/*.rockspec') }}
31-
restore-keys: |
32-
${{ runner.os }}-luarocks-
33-
34-
- name: Install luacheck
35-
run: luarocks install luacheck
36-
37-
- name: Check formatting with stylua
38-
uses: JohnnyMorganz/stylua-action@v3
39-
with:
40-
token: ${{ secrets.GITHUB_TOKEN }}
41-
version: latest
42-
args: --check lua/
43-
44-
- name: Run Luacheck
45-
run: luacheck lua/
46-
4710
test:
4811
runs-on: ubuntu-latest
4912
strategy:
5013
fail-fast: false
5114
matrix:
5215
neovim-version: [stable, nightly]
53-
16+
5417
name: Test with Neovim ${{ matrix.neovim-version }}
5518
steps:
5619
- uses: actions/checkout@v3
57-
20+
5821
- name: Install Neovim
5922
uses: rhysd/action-setup-vim@v1
6023
with:
6124
neovim: true
6225
version: ${{ matrix.neovim-version }}
63-
26+
6427
- name: Create cache directories
6528
run: |
6629
mkdir -p ~/.luarocks
6730
mkdir -p ~/.local/share/nvim/site/pack
68-
31+
6932
- name: Cache plugin dependencies
7033
uses: actions/cache@v3
7134
with:
7235
path: ~/.local/share/nvim/site/pack
7336
key: ${{ runner.os }}-nvim-plugins-${{ hashFiles('**/test.sh') }}-${{ matrix.neovim-version }}
7437
restore-keys: |
7538
${{ runner.os }}-nvim-plugins-
76-
39+
7740
- name: Install dependencies
7841
run: |
7942
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
@@ -84,19 +47,18 @@ jobs:
8447
echo "plenary.nvim directory already exists, updating..."
8548
cd ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim && git pull origin master
8649
fi
87-
50+
8851
- name: Verify test directory structure
8952
run: |
9053
ls -la ./tests/
9154
ls -la ./tests/spec/
92-
55+
9356
- name: Display Neovim version
9457
run: nvim --version
95-
58+
9659
- name: Run tests
9760
run: |
9861
export PLUGIN_ROOT="$(pwd)"
9962
./scripts/test.sh
10063
continue-on-error: false
101-
10264
# Documentation validation has been moved to the dedicated docs.yml workflow

.github/workflows/docs.yml

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

.github/workflows/markdown-lint.yml

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

.github/workflows/scripts-lint.yml

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

.github/workflows/yaml-lint.yml

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

0 commit comments

Comments
 (0)