chore: attempt to get install-fake-driver working again in CI
MODIFY
.github/workflows/node.js.yml
.github/workflows/node.js.yml
@@ -18,9 +18,14 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- - run: |
- npm install
- npm test
+ - name: Install latest npm
+ run: npm install -g npm
+ - name: Install dependencies
+ run: npm install
+ - name: Run unit tests
+ run: npm test
+ - name: Run E2E tests
+ run: |
npm run install-fake-driver
npm run e2e-test

MODIFY
package.json
package.json
"generate-docs": "lerna run --scope=appium generate-docs",
"generate-schema-declarations": "node ./scripts/generate-schema-declarations.mjs",
"postinstall": "lerna exec --parallel \"gulp prepublish\"",
- "install-fake-driver": "lerna run --scope=appium install-fake-driver",
+ "uninstall-fake-driver": "npm start -- driver uninstall fake",
+ "install-fake-driver": "npm start -- driver install --source=local ./packages/fake-driver",
"lint": "lerna exec --parallel \"gulp lint\" && lerna run --scope=@appium/eslint-config-appium lint",
"lint:fix": "eslint --fix .",
"precommit-lint": "lint-staged",
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
"reinstall": "npm run clean && npm install",
- "start": "node ./packages/appium",
+ "start": "appium",
"sync-pkgs": "npm run sync-pkgs:appium-readme && npm run sync-pkgs:common-fields && npm run sync-pkgs:keywords",
"sync-pkgs:appium-readme": "sync-monorepo-packages --force --no-package-json --packages=packages/appium README.md",
"sync-pkgs:common-fields": "sync-monorepo-packages --fields=author,license,repository,bugs,homepage,engines",

MODIFY
packages/appium/package.json
packages/appium/package.json
"scripts": {
"generate-docs": "gulp transpile && node ./build/commands-yml/parse.js",
"postinstall": "node ./postinstall.js",
- "install-fake-driver": "node . driver install --source=local ../fake-driver",
"upload": "gulp github-upload",
"zip": "zip -qr appium.zip .",
"zip-and-upload": "npm run zip && npm run upload"

chore: attempt to get install-fake-driver working again in CI