-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 966 Bytes
/
lua-tests.yml
File metadata and controls
45 lines (37 loc) · 966 Bytes
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
name: Lua Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Lua
id: lua-setup
uses: leafo/gh-actions-lua@v11
with:
luaVersion: "5.1"
luaCompileFlags: "INSTALL_TOP=./LibVectorMathTest/.lua"
buildCache: true
- name: Setup LuaRocks
uses: leafo/gh-actions-luarocks@v5
with:
luarocksVersion: "3.11.1"
- name: Install dependencies
run: |
cd LibVectorMathTest
luarocks install busted
luarocks install luacov
- name: Run tests
run: |
cd LibVectorMathTest
busted --coverage
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: LibVectorMathTest/luacov.report.out
if-no-files-found: ignore