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": [