-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.07 KB
/
busted.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
name: busted
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
busted:
runs-on: ubuntu-latest
strategy:
matrix:
LUA_VERSION: [ 5.2, 5.3 ]
env:
LUAENV: luaenv
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install busted
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/luarocks/hererocks
python -m hererocks ${LUAENV} -l ${{ matrix.LUA_VERSION }} -r latest
source ${LUAENV}/bin/activate
luarocks install dkjson
luarocks install busted
luarocks install luacov
luarocks install luacov-multiple
lua -v
busted --version
- name: Test with busted
run: |
source ${LUAENV}/bin/activate
busted -c src/
- name: Show coverage summary
run: |
sed -n -E '/^File.+Hits.+Missed.+Coverage$/,$p' luacov.report.out