Set up GitHub action for Doctor (#849)
Summary: Action for Doctor. Pull Request resolved: https://github.com/facebook/flipper/pull/849 Test Plan: Watch that box below turn green. Reviewed By: mweststrate Differential Revision: D20281213 Pulled By: passy fbshipit-source-id: 87977c3f67605b4f4f080dd6ca7ab921b10a375b
This commit is contained in:
committed by
Facebook Github Bot
parent
83807f12f6
commit
31c9df92b8
23
.github/workflows/nodejs-doctor.yml
vendored
Normal file
23
.github/workflows/nodejs-doctor.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Doctor Node CI
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
- name: install
|
||||||
|
working-directory: doctor
|
||||||
|
run: yarn
|
||||||
|
- name: test
|
||||||
|
working-directory: doctor
|
||||||
|
run: yarn test
|
||||||
|
- name: run
|
||||||
|
working-directory: doctor
|
||||||
|
run: yarn run run
|
||||||
@@ -28,8 +28,8 @@
|
|||||||
"prepublishOnly": "yarn test && yarn run lint",
|
"prepublishOnly": "yarn test && yarn run lint",
|
||||||
"preversion": "yarn run lint",
|
"preversion": "yarn run lint",
|
||||||
"test": "jest --config jestconfig.json --passWithNoTests",
|
"test": "jest --config jestconfig.json --passWithNoTests",
|
||||||
"lint": "eslint -c ../../sonar/.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit",
|
"lint": "eslint -c ../.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit",
|
||||||
"fix": "eslint -c ../../sonar/.eslintrc.js src/**/* --fix --ext .js,.ts",
|
"fix": "eslint -c ../.eslintrc.js src/**/* --fix --ext .js,.ts",
|
||||||
"run": "yarn run build && node lib/cli.js"
|
"run": "yarn run build && node lib/cli.js"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
Reference in New Issue
Block a user