diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml new file mode 100644 index 00000000..29468560 --- /dev/null +++ b/.azure-pipelines.yml @@ -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 \ No newline at end of file diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 08c231cc..00000000 --- a/.github/main.workflow +++ /dev/null @@ -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" -} \ No newline at end of file