add lua diagnostics to pipeline

This commit is contained in:
Juraj Vajda 2022-11-03 11:47:52 -04:00
parent 60fa2a53b6
commit 60ec3a6132

View File

@ -3,14 +3,15 @@ image: atlassian/default-image:3
pipelines:
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 .
- parallel:
- step:
name: Lint code
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
@ -22,6 +23,7 @@ pipelines:
- npm run lua-diagnostics
branches:
master:
- parallel:
- step:
name: Lint code
script:
@ -30,8 +32,18 @@ pipelines:
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
tags:
"*":
- parallel:
- step:
name: Lint code
script:
@ -40,6 +52,15 @@ pipelines:
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
- step:
name: Install Node Dependencies
caches: