Dogfood ci

This commit is contained in:
Danny McCormick 2019-06-07 13:14:48 -04:00
parent 5edad1ec64
commit 1f555ee56e
2 changed files with 19 additions and 40 deletions

View file

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

19
.github/main.workflow.yml vendored Normal file
View file

@ -0,0 +1,19 @@
version: 1
on: push
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest, windows-latest]
actions:
- name: npm install
run: npm install
- name: Lint
run: npm run format-check
- name: npm test
run: npm test