Skip to content

Commit 367aa2c

Browse files
committed
centralize node version in workflows
1 parent f2a86d0 commit 367aa2c

10 files changed

Lines changed: 32 additions & 61 deletions

File tree

.github/workflows/appium_Android.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,15 @@ jobs:
2727

2828
strategy:
2929
matrix:
30-
node-version: [20.x]
3130
test-suite: ['other', 'quick']
3231

3332
steps:
3433
- uses: actions/checkout@v6
3534

36-
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v6
35+
- name: Set up Node.js
36+
uses: actions/setup-node@v4
3837
with:
39-
node-version: ${{ matrix.node-version }}
38+
node-version-file: .nvmrc
4039

4140
- run: npm i
4241
env:

.github/workflows/doc-generation.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,14 @@ jobs:
1313
update-documentation:
1414
runs-on: ubuntu-22.04
1515

16-
strategy:
17-
matrix:
18-
node-version: [20.x]
19-
2016
steps:
2117
- name: Check out the repo
2218
uses: actions/checkout@v6
2319

24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v6
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
2622
with:
27-
node-version: ${{ matrix.node-version }}
23+
node-version-file: .nvmrc
2824

2925
- name: Install Dependencies
3026
run: npm i --force

.github/workflows/dtslint.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ concurrency:
1515
jobs:
1616
test:
1717
runs-on: ubuntu-22.04
18-
strategy:
19-
matrix:
20-
node-version: [20.x]
18+
2119
steps:
2220
- uses: actions/checkout@v6
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v6
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
2523
with:
26-
node-version: ${{ matrix.node-version }}
24+
node-version-file: .nvmrc
2725
- run: npm i --force
2826
env:
2927
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true

.github/workflows/playwright.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,12 @@ jobs:
2222
runs-on: ubuntu-latest
2323
timeout-minutes: 30
2424

25-
strategy:
26-
matrix:
27-
node-version: [20.x]
28-
2925
steps:
3026
- uses: actions/checkout@v6
31-
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@v6
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
3329
with:
34-
node-version: ${{ matrix.node-version }}
30+
node-version-file: .nvmrc
3531
- uses: shivammathur/setup-php@v2
3632
with:
3733
php-version: 7.4

.github/workflows/plugin.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,12 @@ jobs:
2222
runs-on: ubuntu-22.04
2323
timeout-minutes: 20
2424

25-
strategy:
26-
matrix:
27-
node-version: [20.x]
28-
2925
steps:
3026
- uses: actions/checkout@v6
31-
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@v6
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
3329
with:
34-
node-version: ${{ matrix.node-version }}
30+
node-version-file: .nvmrc
3531
- uses: shivammathur/setup-php@v2
3632
with:
3733
php-version: 7.4

.github/workflows/puppeteer.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,12 @@ jobs:
2222
runs-on: ubuntu-22.04
2323
timeout-minutes: 25
2424

25-
strategy:
26-
matrix:
27-
node-version: [20.x]
28-
2925
steps:
3026
- uses: actions/checkout@v6
31-
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@v6
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
3329
with:
34-
node-version: ${{ matrix.node-version }}
30+
node-version-file: .nvmrc
3531
- uses: shivammathur/setup-php@v2
3632
with:
3733
php-version: 7.4

.github/workflows/sharding-demo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
- name: Checkout
3131
uses: actions/checkout@v6
3232

33-
- name: Setup Node.js
34-
uses: actions/setup-node@v6
33+
- name: Set up Node.js
34+
uses: actions/setup-node@v4
3535
with:
36-
node-version: 20
36+
node-version-file: .nvmrc
3737

3838
- name: Install dependencies
3939
run: npm install --ignore-scripts

.github/workflows/test.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,12 @@ jobs:
5858
runs-on: windows-latest
5959
timeout-minutes: 15
6060

61-
strategy:
62-
matrix:
63-
node-version: [ 20.x ]
64-
6561
steps:
6662
- uses: actions/checkout@v6
67-
- name: Use Node.js ${{ matrix.node-version }}
68-
uses: actions/setup-node@v6
63+
- name: Set up Node.js
64+
uses: actions/setup-node@v4
6965
with:
70-
node-version: ${{ matrix.node-version }}
66+
node-version-file: .nvmrc
7167
- run: npm i
7268
env:
7369
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
@@ -79,16 +75,12 @@ jobs:
7975
runs-on: ubuntu-22.04
8076
timeout-minutes: 15
8177

82-
strategy:
83-
matrix:
84-
node-version: [20.x]
85-
8678
steps:
8779
- uses: actions/checkout@v6
88-
- name: Use Node.js ${{ matrix.node-version }}
89-
uses: actions/setup-node@v6
80+
- name: Set up Node.js
81+
uses: actions/setup-node@v4
9082
with:
91-
node-version: ${{ matrix.node-version }}
83+
node-version-file: .nvmrc
9284
- run: npm i
9385
env:
9486
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true

.github/workflows/webdriver.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,14 @@ jobs:
2121
build:
2222
runs-on: ubuntu-latest
2323
timeout-minutes: 25
24-
strategy:
25-
matrix:
26-
node-version: [20.x]
2724

2825
steps:
2926
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.27
3027
- uses: actions/checkout@v6
31-
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@v6
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v4
3330
with:
34-
node-version: ${{ matrix.node-version }}
31+
node-version-file: .nvmrc
3532
- uses: shivammathur/setup-php@v2
3633
with:
3734
php-version: 8.0

.nvmrc

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

0 commit comments

Comments
 (0)