Skip to content

Commit 37c0806

Browse files
authored
feat(ci): tune workflows (#3656)
1 parent 2c0c250 commit 37c0806

File tree

8 files changed

+57
-53
lines changed

8 files changed

+57
-53
lines changed

.github/workflows/appium.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [14.x]
20+
node-version: [16.x]
2121

2222
steps:
23-
- uses: actions/checkout@v1
23+
- uses: actions/checkout@v3
2424
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v3
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
- run: npm install
28+
- run: npm install --legacy-peer-deps
2929
env:
3030
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
3131
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
@@ -41,12 +41,12 @@ jobs:
4141

4242
strategy:
4343
matrix:
44-
node-version: [14.x]
44+
node-version: [16.x]
4545

4646
steps:
47-
- uses: actions/checkout@v1
47+
- uses: actions/checkout@v3
4848
- name: Use Node.js ${{ matrix.node-version }}
49-
uses: actions/setup-node@v1
49+
uses: actions/setup-node@v3
5050
with:
5151
node-version: ${{ matrix.node-version }}
5252
- run: npm install

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: Check Tests
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
1717
- uses: testomatio/check-tests@master

.github/workflows/dtslint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ on:
1010

1111
jobs:
1212
test:
13-
runs-on: ubuntu-18.04
13+
runs-on: ubuntu-20.04
1414
strategy:
1515
matrix:
16-
node-version: [14.x]
16+
node-version: [16.x]
1717
steps:
18-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@v3
1919
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v3
2121
with:
2222
node-version: ${{ matrix.node-version }}
23-
- run: npm install
23+
- run: npm install --legacy-peer-deps
2424
env:
2525
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
2626
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

.github/workflows/playwright.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
node-version: [14.x]
23+
node-version: [16.x]
2424

2525
steps:
26-
- uses: actions/checkout@v1
26+
- uses: actions/checkout@v3
2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v1
28+
uses: actions/setup-node@v3
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: 7.4
3434
- name: npm install
3535
run: |
36-
npm install
36+
npm install --legacy-peer-deps
3737
env:
3838
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
3939
- name: Install deps

.github/workflows/puppeteer.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ env:
1616
jobs:
1717
build:
1818

19-
runs-on: ubuntu-18.04
19+
runs-on: ubuntu-20.04
2020

2121
strategy:
2222
matrix:
23-
node-version: [14.x]
23+
node-version: [16.x]
2424

2525
steps:
26-
- uses: actions/checkout@v1
26+
- uses: actions/checkout@v3
2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v1
28+
uses: actions/setup-node@v3
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: 7.4
3434
- name: npm install
3535
run: |
36-
npm install
36+
npm install --legacy-peer-deps
3737
env:
3838
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
3939
- name: start a server

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ on:
1111
jobs:
1212
build:
1313

14-
runs-on: ubuntu-18.04
14+
runs-on: ubuntu-20.04
1515

1616
strategy:
1717
matrix:
18-
node-version: [14.x]
18+
node-version: [16.x]
1919

2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v3
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
- run: npm install
26+
- run: npm install --legacy-peer-deps
2727
env:
2828
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
2929
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

.github/workflows/testcafe.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ env:
1717
jobs:
1818
build:
1919

20-
runs-on: ubuntu-18.04
20+
runs-on: ubuntu-20.04
2121

2222
strategy:
2323
matrix:
24-
node-version: [14.x]
24+
node-version: [16.x]
2525

2626
steps:
27-
- uses: actions/checkout@v1
27+
- uses: actions/checkout@v3
2828
- name: Use Node.js ${{ matrix.node-version }}
29-
uses: actions/setup-node@v1
29+
uses: actions/setup-node@v3
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
- uses: shivammathur/setup-php@v2
3333
with:
3434
php-version: 7.4
3535
- name: npm install
3636
run: |
37-
npm install
37+
npm install --legacy-peer-deps
3838
env:
3939
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
4040
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

.github/workflows/webdriver.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,30 @@ jobs:
1717
build:
1818

1919
runs-on: ubuntu-20.04
20+
strategy:
21+
matrix:
22+
node-version: [16.x]
2023

2124
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v2
24-
- uses: actions/setup-node@v3
25-
with:
26-
node-version: 18
27-
- uses: shivammathur/setup-php@v2
28-
with:
29-
php-version: 8.0
30-
- name: start a server
31-
run: "php -S 127.0.0.1:8000 -t test/data/app &"
32-
- name: start selenium
33-
run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.59-oxygen
34-
- name: Install
35-
run: |
36-
npm i
37-
- name: run unit tests
38-
run: |
39-
google-chrome --version
40-
npx mocha test/helper/WebDriver_test.js
41-
- name: run tests
42-
run: "./bin/codecept.js run -c test/acceptance/codecept.WebDriver.js --grep @WebDriver --debug"
25+
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.59-oxygen
26+
- uses: actions/checkout@v3
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: 7.4
34+
- name: npm install
35+
run: |
36+
npm install --legacy-peer-deps
37+
env:
38+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
39+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
40+
- name: start a server
41+
run: "php -S 127.0.0.1:8000 -t test/data/app &"
42+
- name: run unit tests
43+
run: ./node_modules/.bin/mocha test/helper/WebDriver_test.js
44+
- name: run tests
45+
run: "./bin/codecept.js run -c test/acceptance/codecept.WebDriver.js --grep @WebDriver --debug"
46+

0 commit comments

Comments
 (0)