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,43 +3,64 @@ image: atlassian/default-image:3
pipelines: pipelines:
pull-requests: pull-requests:
"**": "**":
# - step: - parallel:
# name: Lint code - step:
# script: name: Lint code
# - apt-get update script:
# - apt-get -y install lua5.1 - apt-get update
# - apt-get -y install luarocks - apt-get -y install lua5.1
# - luarocks install luacheck - apt-get -y install luarocks
# - luacheck . - luarocks install luacheck
- step: - luacheck .
name: Lua Diagnostics - step:
caches: name: Lua Diagnostics
- node-modules caches:
- npm - node-modules
- nvm - npm
script: - nvm
- nvm use v17.2.0 script:
- npm run lua-diagnostics - nvm use v17.2.0
- npm run lua-diagnostics
branches: branches:
master: master:
- step: - parallel:
name: Lint code - step:
script: name: Lint code
- apt-get update script:
- apt-get -y install lua5.1 - apt-get update
- apt-get -y install luarocks - apt-get -y install lua5.1
- luarocks install luacheck - apt-get -y install luarocks
- luacheck . - luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
tags: tags:
"*": "*":
- step: - parallel:
name: Lint code - step:
script: name: Lint code
- apt-get update script:
- apt-get -y install lua5.1 - apt-get update
- apt-get -y install luarocks - apt-get -y install lua5.1
- luarocks install luacheck - apt-get -y install luarocks
- luacheck . - luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
- step: - step:
name: Install Node Dependencies name: Install Node Dependencies
caches: caches: