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