mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-11 07:48:29 +00:00
30 lines
678 B
YAML
30 lines
678 B
YAML
jobs:
|
|
- job: Lint
|
|
displayName: "Lint"
|
|
|
|
pool:
|
|
vmImage: "ubuntu-latest"
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
displayName: "Install Node"
|
|
inputs:
|
|
versionSpec: "12.x"
|
|
|
|
- task: Cache@2
|
|
displayName: "Check Cache"
|
|
inputs:
|
|
key: "yarn | yarn.lock"
|
|
path: "node_modules"
|
|
cacheHitVar: CACHE_RESTORED
|
|
|
|
- script: "yarn install --frozen-lockfile"
|
|
displayName: "Install Dependencies"
|
|
condition: ne(variables.CACHE_RESTORED, 'true')
|
|
|
|
- script: "yarn run lint:js"
|
|
displayName: "Run ESLint"
|
|
|
|
- script: "yarn run lint:style"
|
|
displayName: "Run Stylelint"
|