mirror of
https://github.com/actions/setup-node.git
synced 2025-04-23 03:50:49 +00:00
40 lines
No EOL
587 B
YAML
40 lines
No EOL
587 B
YAML
trigger:
|
|
- master
|
|
- features/*
|
|
|
|
jobs:
|
|
- job: Tests
|
|
displayName: Run tests
|
|
strategy:
|
|
matrix:
|
|
linux:
|
|
imageName: 'ubuntu-16.04'
|
|
mac:
|
|
imageName: 'macos-10.13'
|
|
windows:
|
|
imageName: 'vs2017-win2016'
|
|
pool:
|
|
vmImage: $(imageName)
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: "10"
|
|
|
|
- script: npm install
|
|
|
|
- script: npm test
|
|
|
|
- job: Lint
|
|
displayName: Linting
|
|
pool:
|
|
vmImage: 'ubuntu-16.04'
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: "10"
|
|
|
|
- script: npm install
|
|
|
|
- script: npm run format-check |