-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (29 loc) · 1 KB
/
luacheck.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
name: Luacheck
on: [ push, pull_request ]
jobs:
luacheck:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1"] #[ "5.4", "5.3", "5.2", "5.1", "luajit" ] # , "luajit-openresty"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
repository: 'Malivil/gluacheck'
path: 'gluacheck'
- name: Setup ‘lua’
uses: leafo/gh-actions-lua@v9
with:
luaVersion: ${{ matrix.luaVersion }}
- name: Setup ‘luarocks’
uses: leafo/gh-actions-luarocks@v4
- name: Setup dependencies
run: luarocks install --deps-only gluacheck-dev-1.rockspec
- name: Build ‘luacheck’ (bootstrap)
run: luarocks make gluacheck-dev-1.rockspec
- name: Run ‘luacheck’ (dogfood)
run: lua -e 'package.path="./gluacheck/src/?.lua;./gluacheck/src/?/init.lua;"..package.path' gluacheck/bin/luacheck.lua lua