Use azp for cross-platform support for now

This commit is contained in:
Danny McCormick 2019-06-07 09:24:57 -04:00
parent 79f71d92a1
commit 5edad1ec64
2 changed files with 40 additions and 27 deletions

40
.azure-pipelines.yml Normal file
View file

@ -0,0 +1,40 @@
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

27
.github/main.workflow vendored
View file

@ -1,27 +0,0 @@
workflow "CI" {
on = "push"
resolves = ["Format", "Build", "Test"]
}
action "Dependencies" {
uses = "actions/npm@v2.0.0"
args = "install"
}
action "Build" {
needs = "Dependencies"
uses = "actions/npm@v2.0.0"
args = "run build"
}
action "Format" {
needs = "Dependencies"
uses = "actions/npm@v2.0.0"
args = "run format-check"
}
action "Test" {
needs = "Dependencies"
uses = "actions/npm@v2.0.0"
args = "test"
}