fix(ci): lint ci yaml

This commit is contained in:
Shadowghost 2020-10-14 21:26:52 +00:00
parent 73a6aa11ac
commit e636090182
3 changed files with 28 additions and 28 deletions

View File

@ -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'

View File

@ -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

View File

@ -1,14 +1,14 @@
trigger:
branches:
include:
- "*"
- '*'
tags:
include:
- "*"
- '*'
pr:
branches:
include:
- "*"
- '*'
jobs:
- template: azure-pipelines-lint.yml
- template: azure-pipelines-test.yml