Skip to content

Commit 6fe36e1

Browse files
authored
Update to Node 24. (#466)
1 parent 597aa7c commit 6fe36e1

19 files changed

Lines changed: 4397 additions & 3548 deletions

.github/workflows/action-types.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
validate-typings:
1010
runs-on: "ubuntu-latest"
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: krzema12/github-actions-typing@v0
12+
- uses: actions/checkout@v6
13+
- uses: krzema12/github-actions-typing@v2

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
steps:
4949
- name: checkout
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v6
5151

5252
- name: build, test and lint
5353
run: |
@@ -56,12 +56,12 @@ jobs:
5656
npm run lint
5757
npm test
5858
59-
- uses: actions/setup-java@v4
59+
- uses: actions/setup-java@v5
6060
with:
6161
distribution: 'zulu'
6262
java-version: 25
6363

64-
- uses: actions/cache@v4
64+
- uses: actions/cache@v5
6565
id: avd-cache
6666
with:
6767
path: |
@@ -70,7 +70,7 @@ jobs:
7070
~/.android/debug.keystore
7171
key: avd-${{ matrix.api-level }}-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.arch }}
7272

73-
- uses: gradle/actions/setup-gradle@v4
73+
- uses: gradle/actions/setup-gradle@v5
7474

7575
- name: assemble tests
7676
working-directory: test-fixture

.github/workflows/manually.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: checkout
44-
uses: actions/checkout@v4
44+
uses: actions/checkout@v6
4545

4646
- name: build, test and lint
4747
run: |
@@ -50,12 +50,12 @@ jobs:
5050
npm run lint
5151
npm test
5252
53-
- uses: actions/setup-java@v4
53+
- uses: actions/setup-java@v5
5454
with:
5555
distribution: 'zulu'
5656
java-version: 25
5757

58-
- uses: gradle/actions/setup-gradle@v4
58+
- uses: gradle/actions/setup-gradle@v5
5959

6060
- name: enable KVM for linux runners
6161
if: runner.os == 'Linux'

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
* Run action on Node 24. - [#466](https://github.com/ReactiveCircus/android-emulator-runner/pull/466)
6+
* Update Node and npm packages. - [#466](https://github.com/ReactiveCircus/android-emulator-runner/pull/466)
7+
58
## v2.36.0
69

710
* Remove `--abi` option to better support 16-KB-based system images (#456).

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: checkout
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6
5353

5454
- name: Enable KVM
5555
run: |
@@ -76,7 +76,7 @@ jobs:
7676
target: [default, google_apis]
7777
steps:
7878
- name: checkout
79-
uses: actions/checkout@v4
79+
uses: actions/checkout@v6
8080

8181
- name: Enable KVM
8282
run: |
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
steps:
104104
- name: checkout
105-
uses: actions/checkout@v4
105+
uses: actions/checkout@v6
106106

107107
- name: Enable KVM
108108
run: |
@@ -127,7 +127,7 @@ jobs:
127127
runs-on: ubuntu-latest
128128
steps:
129129
- name: checkout
130-
uses: actions/checkout@v4
130+
uses: actions/checkout@v6
131131

132132
- name: Enable KVM
133133
run: |
@@ -146,8 +146,8 @@ jobs:
146146
147147
We can significantly reduce emulator startup time by setting up AVD snapshot caching:
148148
149-
1. add a `gradle/actions/setup-gradle@v4` step for caching Gradle, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229)
150-
2. add an `actions/cache@v4` step for caching the `avd`
149+
1. add a `gradle/actions/setup-gradle@v5` step for caching Gradle, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229)
150+
2. add an `actions/cache@v5` step for caching the `avd`
151151
3. add a `reactivecircus/android-emulator-runner@v2` step to generate a clean snapshot - specify `emulator-options` without `no-snapshot`
152152
4. add another `reactivecircus/android-emulator-runner@v2` step to run your tests using existing AVD / snapshot - specify `emulator-options` with `no-snapshot-save`
153153

@@ -160,7 +160,7 @@ jobs:
160160
api-level: [21, 23, 29]
161161
steps:
162162
- name: checkout
163-
uses: actions/checkout@v4
163+
uses: actions/checkout@v6
164164
165165
- name: Enable KVM
166166
run: |
@@ -169,10 +169,10 @@ jobs:
169169
sudo udevadm trigger --name-match=kvm
170170
171171
- name: Gradle cache
172-
uses: gradle/actions/setup-gradle@v3
172+
uses: gradle/actions/setup-gradle@v5
173173
174174
- name: AVD cache
175-
uses: actions/cache@v4
175+
uses: actions/cache@v5
176176
id: avd-cache
177177
with:
178178
path: |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ inputs:
7474
pre-emulator-launch-script:
7575
description: 'custom script to run after creating the AVD and before launching the emulator - e.g. `./adjust-emulator-configs.sh`'
7676
runs:
77-
using: 'node20'
77+
using: 'node24'
7878
main: 'lib/main.js'

lib/channel-id-mapper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.getChannelId = void 0;
3+
exports.getChannelId = getChannelId;
44
function getChannelId(channelName) {
55
if (channelName === 'stable') {
66
return 0;
@@ -18,4 +18,3 @@ function getChannelId(channelName) {
1818
throw new Error(`Unexpected channel name: '${channelName}'.`);
1919
}
2020
}
21-
exports.getChannelId = getChannelId;

0 commit comments

Comments
 (0)