-
Notifications
You must be signed in to change notification settings - Fork 40
41 lines (34 loc) · 1.25 KB
/
test.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
name: test
on:
push:
branches: main
pull_request:
branches: main
jobs:
busted:
name: tests
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup ‘lua’
uses: leafo/[email protected]
with:
luaVersion: "5.1"
- name: setup ‘luarocks’
uses: leafo/gh-actions-luarocks@v4
- name: setup dependencies
run: |
luarocks install busted
luarocks install luacov-coveralls
- name: run
run: busted -c -v
env:
LUA_PATH: "/home/runner/work/tmux.nvim/tmux.nvim/?.lua;/home/runner/work/tmux.nvim/tmux.nvim/lua/?/init.lua;/home/runner/work/tmux.nvim/tmux.nvim/lua/?.lua;/home/runner/work/tmux.nvim/tmux.nvim/spec/?/init.lua;/home/runner/work/tmux.nvim/tmux.nvim/spec/?.lua;"
- name: report
if: success()
continue-on-error: true
run: luacov-coveralls -i tmux.nvim/lua -e .luarocks
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}
LUA_PATH: "/home/runner/work/tmux.nvim/tmux.nvim/?.lua;/home/runner/work/tmux.nvim/tmux.nvim/lua/?/init.lua;/home/runner/work/tmux.nvim/tmux.nvim/lua/?.lua;/home/runner/work/tmux.nvim/tmux.nvim/spec/?/init.lua;/home/runner/work/tmux.nvim/tmux.nvim/spec/?.lua;"