Skip to content

Commit 7474ceb

Browse files
committed
Update workflow to 22.x
1 parent c6813cd commit 7474ceb

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

.github/workflows/puppeteer.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,31 @@ env:
1515

1616
jobs:
1717
build:
18-
1918
runs-on: ubuntu-22.04
2019

2120
strategy:
2221
matrix:
23-
node-version: [20.x]
22+
node-version: [22.x]
2423

2524
steps:
26-
- uses: actions/checkout@v4
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
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 i --force && npm i puppeteer --force
37-
env:
38-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
39-
- name: start a server
40-
run: "php -S 127.0.0.1:8000 -t test/data/app &"
41-
- uses: browser-actions/setup-chrome@v1
42-
- run: chrome --version
43-
- name: run tests
44-
run: "./bin/codecept.js run-workers 2 -c test/acceptance/codecept.Puppeteer.js --grep @Puppeteer --debug"
45-
- name: run unit tests
46-
run: ./node_modules/.bin/mocha test/helper/Puppeteer_test.js
25+
- uses: actions/checkout@v4
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: 7.4
33+
- name: npm install
34+
run: |
35+
npm i --force && npm i puppeteer --force
36+
env:
37+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
38+
- name: start a server
39+
run: 'php -S 127.0.0.1:8000 -t test/data/app &'
40+
- uses: browser-actions/setup-chrome@v1
41+
- run: chrome --version
42+
- name: run tests
43+
run: './bin/codecept.js run-workers 2 -c test/acceptance/codecept.Puppeteer.js --grep @Puppeteer --debug'
44+
- name: run unit tests
45+
run: ./node_modules/.bin/mocha test/helper/Puppeteer_test.js

0 commit comments

Comments
 (0)