Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 13, 2024
1 parent 567db38 commit e6e54f9
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 5 deletions.
135 changes: 131 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,93 @@ on:
pull_request:

jobs:
tests:
tests-on-dusk-8:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.1
- 8.2
- 8.3
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo
coverage: none

- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/dusk:~8"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit

tests-on-dusk-7:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.1
- 8.2
- 8.3
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo
coverage: none

- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/dusk:~7"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit

tests-on-dusk-6:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
Expand All @@ -14,8 +100,6 @@ jobs:
- "ubuntu-latest"
- "windows-latest"
php:
- 7.1
- 7.2
- 7.3
- 7.4
- '8.0'
Expand Down Expand Up @@ -44,7 +128,50 @@ jobs:
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"
composer-options: "--prefer-dist --no-cache --with=laravel/dusk:~6"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit

tests-on-dusk-5:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 7.3
- 7.4
- '8.0'
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo
coverage: none

- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/dusk:~5.8"

- name: Installed dependencies
run: composer show -D
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@
"symfony/process": "^4.3.4 || ^5.0 || ^6.0"
},
"require-dev": {
"laravel/dusk": "^6.0 || ^7.0",
"laravel/dusk": "^5.8.2 || ^6.0 || ^7.0 || ^8.0",
"phpstan/phpstan": "^1.10.7",
"phpunit/phpunit": "^9.6"
},
"conflict": {
"laravel/dusk": ">=9.0.0"
},
"config": {
"sort-packages": true
},
Expand Down

0 comments on commit e6e54f9

Please sign in to comment.