-
Notifications
You must be signed in to change notification settings - Fork 29
79 lines (73 loc) · 3.03 KB
/
ci-test-official.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Official Tests
on:
push:
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
run_tests:
name: "🛡️ ${{ matrix.name }}"
uses: "./.github/workflows/test.yml"
with:
name: ${{ matrix.name }}
driverRepoUrl: ${{ matrix.driverRepoUrl }}
driverRepoBranch: ${{ matrix.driverRepoBranch }}
php: ${{ matrix.php }}
setUpCmd: ${{ matrix.setUpCmd }}
testCmd: ${{ matrix.testCmd }}
tearDownCmd: ${{ matrix.tearDownCmd }}
strategy:
fail-fast: false
matrix:
include:
- name: "BrowserKit (http client)"
driverRepoUrl: "https://github.com/minkphp/MinkBrowserKitDriver.git"
driverRepoBranch: "master"
php: "7.2"
# language=bash
testCmd: ./vendor/bin/phpunit --colors=always --testdox --configuration ./phpunit.http_client.xml
- name: "BrowserKit (http kernel)"
driverRepoUrl: "https://github.com/minkphp/MinkBrowserKitDriver.git"
driverRepoBranch: "master"
php: "7.2"
# language=bash
testCmd: ./vendor/bin/phpunit --colors=always --testdox
- name: "Selenium2"
driverRepoUrl: "https://github.com/minkphp/MinkSelenium2Driver.git"
driverRepoBranch: "master"
php: "7.2"
# language=bash
setUpCmd: |
export SELENIUM_IMAGE=selenium/standalone-firefox:2.53.1
docker compose up --wait --quiet-pull
curl --retry 5 --retry-all-errors --retry-delay 1 --max-time 10 --head -X GET http://localhost:4444/wd/hub/status
# language=bash
testCmd: |
export WEB_FIXTURES_BROWSER=firefox
export SELENIUM_VERSION=2.53.1
export DRIVER_MACHINE_BASE_PATH=/fixtures/
export WEB_FIXTURES_HOST=http://host.docker.internal:8002
./vendor/bin/phpunit --colors=always --testdox
# language=bash
tearDownCmd: |
docker compose logs --no-color --no-log-prefix --timestamps selenium &> ./logs/selenium.docker.log
- name: "WebDriver-Classic"
driverRepoUrl: "https://github.com/minkphp/webdriver-classic-driver.git"
driverRepoBranch: "main"
php: "7.4"
# language=bash
setUpCmd: |
export SELENIUM_IMAGE=selenium/standalone-firefox:4
docker compose up --wait --quiet-pull
curl --retry 5 --retry-all-errors --retry-delay 1 --max-time 10 --head -X GET http://localhost:4444/wd/hub/status
# language=bash
testCmd: |
export WEB_FIXTURES_BROWSER=firefox
export DRIVER_MACHINE_BASE_PATH=/fixtures/
export WEB_FIXTURES_HOST=http://host.docker.internal:8002
./vendor/bin/phpunit --colors=always --testdox
# language=bash
tearDownCmd: |
docker compose logs --no-color --no-log-prefix --timestamps selenium &> ./logs/selenium.docker.log