mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2025-02-26 08:46:25 +00:00
fix(ci): lint ci yaml
This commit is contained in:
parent
73a6aa11ac
commit
e636090182
@ -1,29 +1,29 @@
|
||||
jobs:
|
||||
- job: Lint
|
||||
displayName: "Lint"
|
||||
displayName: 'Lint'
|
||||
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Install Node"
|
||||
displayName: 'Install Node'
|
||||
inputs:
|
||||
versionSpec: "12.x"
|
||||
versionSpec: '12.x'
|
||||
|
||||
- task: Cache@2
|
||||
displayName: "Check Cache"
|
||||
displayName: 'Check Cache'
|
||||
inputs:
|
||||
key: "yarn | yarn.lock"
|
||||
path: "node_modules"
|
||||
key: 'yarn | yarn.lock'
|
||||
path: 'node_modules'
|
||||
cacheHitVar: CACHE_RESTORED
|
||||
|
||||
- script: "yarn install --frozen-lockfile"
|
||||
displayName: "Install Dependencies"
|
||||
- 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:js'
|
||||
displayName: 'Run ESLint'
|
||||
|
||||
- script: "yarn run lint:style"
|
||||
displayName: "Run Stylelint"
|
||||
- script: 'yarn run lint:style'
|
||||
displayName: 'Run Stylelint'
|
||||
|
@ -1,32 +1,32 @@
|
||||
jobs:
|
||||
- job: Test
|
||||
displayName: "Test"
|
||||
displayName: 'Test'
|
||||
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Install Node"
|
||||
displayName: 'Install Node'
|
||||
inputs:
|
||||
versionSpec: "12.x"
|
||||
versionSpec: '12.x'
|
||||
|
||||
- task: Cache@2
|
||||
displayName: "Check Cache"
|
||||
displayName: 'Check Cache'
|
||||
inputs:
|
||||
key: "yarn | yarn.lock"
|
||||
path: "node_modules"
|
||||
key: 'yarn | yarn.lock'
|
||||
path: 'node_modules'
|
||||
cacheHitVar: CACHE_RESTORED
|
||||
|
||||
- script: "yarn install --frozen-lockfile"
|
||||
displayName: "Install Dependencies"
|
||||
- script: 'yarn install --frozen-lockfile'
|
||||
displayName: 'Install Dependencies'
|
||||
condition: ne(variables.CACHE_RESTORED, 'true')
|
||||
|
||||
- script: "yarn run test"
|
||||
displayName: "Run Jest"
|
||||
- script: 'yarn run test'
|
||||
displayName: 'Run Jest'
|
||||
|
||||
- task: PublishCodeCoverageResults@1
|
||||
displayName: "Publish Coverage Results"
|
||||
displayName: 'Publish Coverage Results'
|
||||
inputs:
|
||||
codeCoverageTool: Cobertura
|
||||
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml
|
||||
|
@ -1,14 +1,14 @@
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- "*"
|
||||
- '*'
|
||||
tags:
|
||||
include:
|
||||
- "*"
|
||||
- '*'
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- "*"
|
||||
- '*'
|
||||
jobs:
|
||||
- template: azure-pipelines-lint.yml
|
||||
- template: azure-pipelines-test.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user