|
15 | 15 |
|
16 | 16 | jobs: |
17 | 17 | build: |
18 | | - |
19 | 18 | runs-on: ubuntu-latest |
20 | 19 | strategy: |
21 | 20 | matrix: |
22 | 21 | node-version: [20.x] |
23 | 22 |
|
24 | 23 | steps: |
25 | | - - run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.0 |
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: 8.0 |
34 | | - - name: npm install |
35 | | - run: | |
36 | | - npm i --force |
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 --exit |
44 | | - - name: run unit tests - no selenium server |
45 | | - run: ./node_modules/.bin/mocha test/helper/WebDriver.noSeleniumServer_test.js --exit |
46 | | - - name: run tests |
47 | | - run: "./bin/codecept.js run -c test/acceptance/codecept.WebDriver.js --grep @WebDriver --debug" |
48 | | - |
| 24 | + - run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.27 |
| 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: 8.0 |
| 33 | + - name: npm install |
| 34 | + run: | |
| 35 | + npm i |
| 36 | + env: |
| 37 | + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true |
| 38 | + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true |
| 39 | + - name: start a server |
| 40 | + run: 'php -S 127.0.0.1:8000 -t test/data/app &' |
| 41 | + - name: run unit tests |
| 42 | + run: ./node_modules/.bin/mocha test/helper/WebDriver_test.js --exit |
| 43 | + - name: run tests |
| 44 | + run: './bin/codecept.js run -c test/acceptance/codecept.WebDriver.js --grep @WebDriver --debug' |
0 commit comments