mirror of
https://github.com/actions/setup-node
synced 2025-04-15 04:46:03 +00:00
Use azp for cross-platform support for now
This commit is contained in:
parent
79f71d92a1
commit
5edad1ec64
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…
Reference in New Issue
Block a user