Skip to content

Commit 1c2d957

Browse files
authored
ci: consolidate node env (#4172)
1 parent a91e7bc commit 1c2d957

12 files changed

+31
-75
lines changed

.github/workflows/appiumV2_Android.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ env:
1111
FORCE_COLOR: 1
1212

1313
jobs:
14-
appium1:
14+
appium:
1515
runs-on: ubuntu-22.04
1616

1717
strategy:
1818
matrix:
19-
node-version: [18.x]
19+
node-version: [20.x]
20+
test-suite: ['other', 'quick']
2021

2122
steps:
2223
- uses: actions/checkout@v4
@@ -28,31 +29,8 @@ jobs:
2829
env:
2930
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
3031
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
31-
- run: 'npm run test:appium-quick'
32+
- run: "npm run test:appium-${{ matrix.test-suite }}"
3233
env: # Or as an environment variable
3334
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
3435
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
3536

36-
37-
appium2:
38-
39-
runs-on: ubuntu-22.04
40-
41-
strategy:
42-
matrix:
43-
node-version: [18.x]
44-
45-
steps:
46-
- uses: actions/checkout@v4
47-
- name: Use Node.js ${{ matrix.node-version }}
48-
uses: actions/setup-node@v4
49-
with:
50-
node-version: ${{ matrix.node-version }}
51-
- run: npm install --legacy-peer-deps
52-
env:
53-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
54-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
55-
- run: 'npm run test:appium-other'
56-
env: # Or as an environment variable
57-
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
58-
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}

.github/workflows/appiumV2_iOS.yml

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Appium V2 Tests - iOS
1+
name: Appium V2 Tests - Android
22

33
on:
44
push:
@@ -11,48 +11,26 @@ env:
1111
FORCE_COLOR: 1
1212

1313
jobs:
14-
appium1:
14+
appium:
1515
runs-on: ubuntu-22.04
1616

1717
strategy:
1818
matrix:
19-
node-version: [18.x]
19+
node-version: [20.x]
20+
test-suite: ['other', 'quick']
2021

2122
steps:
22-
- uses: actions/checkout@v4
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v4
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm install --legacy-peer-deps
28-
env:
29-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
30-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
31-
- run: 'npm run test:ios:appium-quick'
32-
env: # Or as an environment variable
33-
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
34-
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
23+
- uses: actions/checkout@v4
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: npm install --legacy-peer-deps
29+
env:
30+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
31+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
32+
- run: "npm run test:ios:appium-${{ matrix.test-suite }}"
33+
env: # Or as an environment variable
34+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
35+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
3536

36-
37-
appium2:
38-
39-
runs-on: ubuntu-22.04
40-
41-
strategy:
42-
matrix:
43-
node-version: [18.x]
44-
45-
steps:
46-
- uses: actions/checkout@v4
47-
- name: Use Node.js ${{ matrix.node-version }}
48-
uses: actions/setup-node@v4
49-
with:
50-
node-version: ${{ matrix.node-version }}
51-
- run: npm install --legacy-peer-deps
52-
env:
53-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
54-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
55-
- run: 'npm run test:ios:appium-other'
56-
env: # Or as an environment variable
57-
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
58-
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
name: Check Tests
1313
steps:
1414
- uses: actions/checkout@v4

.github/workflows/close-inactive-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
close-issues:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
permissions:
1010
issues: write
1111
pull-requests: write

.github/workflows/doc-generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [ 18.x ]
14+
node-version: [ 20.x ]
1515

1616
steps:
1717
- name: Check out the repo

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
push_to_registry:
1313
name: Build and push Docker image to Docker Hub
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515

1616
steps:
1717
- name: Check out the repo with latest code

.github/workflows/dtslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-22.04
1414
strategy:
1515
matrix:
16-
node-version: [18.x]
16+
node-version: [20.x]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/expectHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
node-version: [18.x]
23+
node-version: [20.x]
2424

2525
steps:
2626
- uses: actions/checkout@v4

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
node-version: [18.x, 20.x]
23+
node-version: [20.x]
2424

2525
steps:
2626
- uses: actions/checkout@v4

.github/workflows/puppeteer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
node-version: [18.x]
23+
node-version: [20.x]
2424

2525
steps:
2626
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)