Skip to content

Commit 20287b7

Browse files
authored
chore: fix type and CI update (#1000)
* ci: use GH Action for detecting LTS Node * fix: type * ci: tweak gha func tests
1 parent e24d46a commit 20287b7

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

.github/workflows/functional-test.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,14 @@ jobs:
7676
if: steps.avd-cache.outputs.cache-hit != 'true'
7777
uses: reactivecircus/android-emulator-runner@v2
7878
with:
79-
api-level: ${{ matrix.apiLevel }}
79+
avd-name: ${{ env.ANDROID_AVD }}
8080
force-avd-creation: false
81-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
82-
disable-animations: false
81+
api-level: ${{ matrix.apiLevel }}
82+
disable-spellchecker: true
83+
target: ${{ matrix.emuTag }}
84+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
85+
arch: ${{ matrix.arch }}
86+
disable-animations: true
8387
script: echo "Generated AVD snapshot for caching."
8488
- run: |
8589
npm install -g appium
@@ -115,6 +119,7 @@ jobs:
115119
api-level: ${{ matrix.apiLevel }}
116120
disable-spellchecker: true
117121
disable-animations: true
122+
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
118123
target: ${{ matrix.emuTag }}
119124
arch: ${{ matrix.arch }}
120125
- name: Save logcat output

.github/workflows/unit-test.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
name: Unit Tests
22

3-
on: [pull_request, push]
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
paths-ignore:
7+
- 'docs/**'
8+
- '*.md'
9+
push:
10+
branches: [ master ]
11+
paths-ignore:
12+
- 'docs/**'
13+
- '*.md'
414

515

616
jobs:
717
prepare_matrix:
818
runs-on: ubuntu-latest
919
outputs:
10-
versions: ${{ steps.generate-matrix.outputs.versions }}
20+
versions: ${{ steps.generate-matrix.outputs.active }}
1121
steps:
12-
- name: Select 3 most recent LTS versions of Node.js
22+
- name: Select all active LTS versions of Node.js
1323
id: generate-matrix
14-
run: echo "versions=$(curl -s https://endoflife.date/api/nodejs.json | jq -c '[[.[] | select(.lts != false)][:3] | .[].cycle | tonumber]')" >> "$GITHUB_OUTPUT"
24+
uses: msimerson/node-lts-versions@v1
1525

1626
node_test:
1727
needs:

lib/commands/execute.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ export async function executeMobile (mobileCommand, opts = {}) {
130130
throw new errors.UnknownCommandError(`Unknown mobile command "${mobileCommand}". ` +
131131
`Only ${_.keys(mobileCommandsMapping)} commands are supported.`);
132132
}
133-
return await this[mobileCommandsMapping[mobileCommand]](opts);
133+
return await this[/**@type {string}*/(mobileCommandsMapping[mobileCommand])](opts);
134134
}

0 commit comments

Comments
 (0)