-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.5 KB
/
Copy pathspec.yml
File metadata and controls
60 lines (56 loc) · 1.5 KB
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
54
55
56
57
58
59
60
name: Specs
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
jobs:
test:
name: Lua ${{ matrix.luaVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- luaVersion: "5.1"
runSpecs: true
- luaVersion: "5.2"
runSpecs: true
- luaVersion: "5.3"
runSpecs: true
- luaVersion: "5.4"
runSpecs: true
- luaVersion: "luajit-2.1"
runSpecs: false
steps:
- uses: actions/checkout@v6
- uses: leafo/gh-actions-lua@v11
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@v5
if: ${{ matrix.runSpecs }}
- name: Install busted
if: ${{ matrix.runSpecs }}
run: luarocks install busted --server=https://luarocks.org --check-lua-versions
- name: Run busted specs
if: ${{ matrix.runSpecs }}
run: busted spec
- name: LuaJIT smoke test
if: ${{ !matrix.runSpecs }}
run: lua scripts/luajit_smoke.lua
lint:
name: Luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: leafo/gh-actions-lua@v11
with:
luaVersion: "5.1"
- uses: leafo/gh-actions-luarocks@v5
- run: luarocks install luacheck --server=https://luarocks.org --check-lua-versions
- run: |
cd "$GITHUB_WORKSPACE"
luacheck feel.lua feel spec scripts