add lua diagnostics to pipeline

This commit is contained in:
Juraj Vajda 2022-11-03 11:41:51 -04:00
parent fe375624be
commit 60fa2a53b6

View File

@ -3,14 +3,23 @@ image: atlassian/default-image:3
pipelines: pipelines:
pull-requests: pull-requests:
"**": "**":
# - step:
# name: Lint code
# script:
# - apt-get update
# - apt-get -y install lua5.1
# - apt-get -y install luarocks
# - luarocks install luacheck
# - luacheck .
- step: - step:
name: Lint code name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script: script:
- apt-get update - nvm use v17.2.0
- apt-get -y install lua5.1 - npm run lua-diagnostics
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
branches: branches:
master: master:
- step: - step: