mirror of
https://github.com/actions/setup-node.git
synced 2025-04-21 09:00:59 +00:00
Use azp for cross-platform support for now
This commit is contained in:
parent
79f71d92a1
commit
5edad1ec64
2 changed files with 40 additions and 27 deletions
40
.azure-pipelines.yml
Normal file
40
.azure-pipelines.yml
Normal 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
27
.github/main.workflow
vendored
|
@ -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"
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue