-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (41 loc) · 1.24 KB
/
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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: alpine:latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies and Neovim
run: |
apk update
apk add neovim git curl
- name: Install Plenary
run: |
mkdir -p ~/.config/nvim/pack/plenary/start
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim.git ~/.config/nvim/pack/plenary/start/plenary.nvim
- name: Run tests
run: |
nvim --headless -c 'PlenaryBustedDirectory tests/plenary/ { init = "./tests/init.test.lua" }'
lint:
runs-on: ubuntu-latest
container: alpine:latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install system dependencies
run: |
echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk update
apk add --no-cache git stylua luacheck prettier@testing
- name: Run Luacheck
run: luacheck .
- name: Run Stylua
run: stylua --check .
- name: Run Prettier
run: prettier --check .