This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
66 lines (62 loc) · 1.56 KB
/
lint-check-test.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
name: Run All Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check-lua:
name: Run Luacheck and Stylua
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup 'lua'
uses: leafo/gh-actions-lua@v8
with:
luaVersion: "5.1.5"
- name: Setup 'luarocks'
uses: leafo/gh-actions-luarocks@v4
- name: Run Luacheck
run: |
luarocks install luacheck
luacheck .
- name: Run Stylua
uses: JohnnyMorganz/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check .
version: 0.10.1
check-rust:
name: Build Rust and Lint with Clippy
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Rust
run: make build-local
- name: Lint Rust
run: make lint-rust
check-integration:
name: Run All Tests
runs-on: macos-11
steps:
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: v0.5.1
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Plenary
uses: actions/checkout@v2
with:
repository: nvim-lua/plenary.nvim
path: vendor/plenary.nvim
- name: Checkout matcher_combinators.lua
uses: actions/checkout@v2
with:
repository: m00qek/matcher_combinators.lua
path: vendor/matcher_combinators.lua
- name: Run All Tests
run: make test