everness/bitbucket-pipelines.yml
Juraj Vajda 777704f9fd Merged in feature/7-cleanup-lua-diagnostics (pull request #16)
7 Cleanup Lua Diagnostics

* 7 Cleanup Lua Diagnostics

* 7 Cleanup Lua Diagnostics

* 7 Cleanup Lua Diagnostics
2023-12-22 21:23:13 +00:00

70 lines
2.0 KiB
YAML

image: atlassian/default-image:3
pipelines:
pull-requests:
"**":
- step:
name: Install Node Dependencies
caches:
- node-modules
- npm
- nvm
script:
- nvm install v17.2.0
- npm i -g npm@8
- npm ci
- step:
name: Lua Check
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
tags:
"*":
- step:
name: Install Node Dependencies
caches:
- node-modules
- npm
- nvm
script:
- nvm install v17.2.0
- npm i -g npm@8
- npm ci
- step:
name: Lua Check
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Deploy to ContentDB
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run push:ci -- --token=$CONTENT_DB_EVERNESS_TOKEN --title=$BITBUCKET_TAG
definitions:
caches:
node-modules:
key:
files:
- package-lock.json
path: ./node_modules
npm:
key:
files:
- package.json
path: ~/.npm
nvm:
key:
files:
- .nvmrc
path: ~/.nvm