From 31c9df92b80d6101cbf4b0e478667bd0cf8ae540 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 5 Mar 2020 10:53:13 -0800 Subject: [PATCH] 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 --- .github/workflows/nodejs-doctor.yml | 23 +++++++++++++++++++++++ doctor/package.json | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/nodejs-doctor.yml diff --git a/.github/workflows/nodejs-doctor.yml b/.github/workflows/nodejs-doctor.yml new file mode 100644 index 000000000..73d6a1a4f --- /dev/null +++ b/.github/workflows/nodejs-doctor.yml @@ -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 diff --git a/doctor/package.json b/doctor/package.json index 402d69c82..16b1dc1b5 100644 --- a/doctor/package.json +++ b/doctor/package.json @@ -28,8 +28,8 @@ "prepublishOnly": "yarn test && yarn run lint", "preversion": "yarn run lint", "test": "jest --config jestconfig.json --passWithNoTests", - "lint": "eslint -c ../../sonar/.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit", - "fix": "eslint -c ../../sonar/.eslintrc.js src/**/* --fix --ext .js,.ts", + "lint": "eslint -c ../.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit", + "fix": "eslint -c ../.eslintrc.js src/**/* --fix --ext .js,.ts", "run": "yarn run build && node lib/cli.js" }, "files": [