|
15 | 15 |
|
16 | 16 | jobs: |
17 | 17 | build: |
18 | | - |
19 | 18 | runs-on: ubuntu-latest |
20 | 19 |
|
21 | 20 | strategy: |
22 | 21 | matrix: |
23 | 22 | node-version: [20.x] |
24 | 23 |
|
25 | 24 | 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 |
37 | | - env: |
38 | | - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true |
39 | | - - name: Install browsers and deps |
40 | | - run: npx playwright install && npx playwright install-deps |
41 | | - - name: start a server |
42 | | - run: "php -S 127.0.0.1:8000 -t test/data/app &" |
43 | | - - name: run chromium tests |
44 | | - run: "./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug" |
45 | | - - name: run chromium with restart==browser tests |
46 | | - run: "BROWSER_RESTART=browser ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug" |
47 | | - - name: run chromium with restart==session tests |
48 | | - run: "BROWSER_RESTART=session ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug" |
49 | | - - name: run firefox tests |
50 | | - run: "BROWSER=firefox node ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug" |
51 | | - - name: run webkit tests |
52 | | - run: "BROWSER=webkit node ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug" |
53 | | - - name: run chromium unit tests |
54 | | - run: ./node_modules/.bin/mocha test/helper/Playwright_test.js --timeout 5000 |
| 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 |
| 36 | + env: |
| 37 | + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true |
| 38 | + - name: Install browsers and deps |
| 39 | + run: npx playwright install && npx playwright install-deps |
| 40 | + - name: check |
| 41 | + run: './bin/codecept.js check -c test/acceptance/codecept.Playwright.js' |
| 42 | + - name: start a server |
| 43 | + run: 'php -S 127.0.0.1:8000 -t test/data/app &' |
| 44 | + - name: run chromium tests |
| 45 | + run: './bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug' |
| 46 | + - name: run chromium with restart==browser tests |
| 47 | + run: 'BROWSER_RESTART=browser ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug' |
| 48 | + - name: run chromium with restart==session tests |
| 49 | + run: 'BROWSER_RESTART=session ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug' |
| 50 | + - name: run firefox tests |
| 51 | + run: 'BROWSER=firefox node ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug' |
| 52 | + - name: run webkit tests |
| 53 | + run: 'BROWSER=webkit node ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug' |
| 54 | + - name: run chromium unit tests |
| 55 | + run: ./node_modules/.bin/mocha test/helper/Playwright_test.js --timeout 5000 |
0 commit comments