diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index db1be44c..633aa8f1 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -7,12 +7,11 @@ jobs: prepare_matrix: runs-on: ubuntu-latest outputs: - versions: ${{ steps.generate-matrix.outputs.versions }} + versions: ${{ steps.generate-matrix.outputs.active }} steps: - - name: Select 3 most recent LTS versions of Node.js + - name: Select all active LTS versions of Node.js id: generate-matrix - run: echo "versions=$(curl -s https://endoflife.date/api/nodejs.json | jq -c '[[.[] | select(.lts != false)][:3] | .[].cycle | tonumber]')" >> "$GITHUB_OUTPUT" - + uses: msimerson/node-lts-versions@v1 test: needs: diff --git a/lib/commands/bidi/models.ts b/lib/commands/bidi/models.ts index 441be5f8..e1e07d5c 100644 --- a/lib/commands/bidi/models.ts +++ b/lib/commands/bidi/models.ts @@ -5,7 +5,7 @@ import { LOG_ENTRY_ADDED_EVENT, CONTEXT_UPDATED_EVENT_OBSOLETE, } from './constants'; -import type { LogcatRecord as LogEntry } from 'appium-adb'; +import type { LogEntry } from 'appium-adb'; import _ from 'lodash'; function toContextUpdatedEvent(method: string, contextName: string): ContextUpdatedEvent { diff --git a/lib/driver.ts b/lib/driver.ts index 083a8317..8de10869 100644 --- a/lib/driver.ts +++ b/lib/driver.ts @@ -279,6 +279,7 @@ class AndroidDriver this.curContext = this.defaultContextName(); this.opts = opts as AndroidDriverOpts; this._cachedActivityArgs = {}; + // @ts-ignore Remove it after min supported server version is ^2.14.0 this.doesSupportBidi = true; } diff --git a/lib/utils.js b/lib/utils.js index c414f3ba..7b5be04d 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -82,11 +82,12 @@ export function nativeLogEntryToSeleniumEntry (x) { export function toLogRecord(timestamp, message, level = 'ALL') { return { timestamp, + // @ts-ignore It's ok level, message, }; } /** - * @typedef {import('appium-adb').LogcatRecord} LogEntry + * @typedef {import('appium-adb').LogEntry} LogEntry */