-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.17 KB
/
tests.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
45
46
47
48
49
50
---
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
commit_lint:
runs-on: ubuntu-latest
steps:
- uses: webiny/[email protected]
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/ tests/
unit_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
neovim_branch: ["v0.8.3", "v0.9.5", "nightly"]
steps:
- uses: actions/checkout@v3
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_branch }}
- name: Install dependent repos
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter
- name: Run tests
run: |
make test