-
Notifications
You must be signed in to change notification settings - Fork 39
47 lines (38 loc) · 1006 Bytes
/
main.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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Install Lua
uses: leafo/gh-actions-lua@master
with:
luaVersion: 5.1
- name: Install Luarocks
uses: leafo/gh-actions-luarocks@master
- name: Install Luarocks Packages
run: |
luarocks install busted
luarocks install luacheck
luarocks install luacov
luarocks install luacov-reporter-lcov
luarocks install luafilesystem
luarocks install md5
- name: Verify LuaCheck
run: luacheck lib
- name: Run Tests
run: |
lua -lluacov spec.lua
luacov -r lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ./luacov.report.out