mirror of
https://github.com/actions/setup-node
synced 2025-04-18 22:23:11 +00:00
Dogfood ci
This commit is contained in:
parent
5edad1ec64
commit
1f555ee56e
@ -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
19
.github/main.workflow.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user