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 Mar 6, 2024
1 parent 5a16c28 commit 12e1419
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
48 changes: 46 additions & 2 deletions .github/workflows/tests.yml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

jobs:
tests-on-laravel-10:
tests:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
Expand All @@ -14,12 +14,56 @@ jobs:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.1
- 8.2
- 8.3
dependencies:
- "highest"
- "lowest"
laravel:
- "11.x"
- "10.x"
experimental:
- false

name: Laravel ${{ matrix.laravel }} on PHP${{ matrix.php }}-${{ 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, sqlite3, pdo_sqlite, bcmath, fileinfo
coverage: none

- name: Install Laravel Framework ${{ matrix.laravel }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist"

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

tests-on-php81:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.1
dependencies:
- "highest"
- "lowest"
laravel:
- "10.x"
experimental:
Expand Down
25 changes: 12 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,29 @@
},
"require": {
"php": "^8.1",
"illuminate/database": "^10.17",
"illuminate/support": "^10.17"
"illuminate/database": "^10.17 || ^11.0",
"illuminate/support": "^10.17 || ^11.0"
},
"require-dev": {
"laravel/pint": "^1.6",
"nunomaduro/larastan": "^2.6",
"orchestra/testbench": "^8.15",
"phpunit/phpunit": "^10.1"
"orchestra/testbench": "^8.15 ||. ^9.0",
"phpunit/phpunit": "^10.1 || ^11.0"
},
"scripts": {
"post-autoload-dump": [
"@clear",
"@prepare",
"@composer run prepare"
"@prepare"
],
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"lint": [
"@php vendor/bin/pint",
"@php vendor/bin/phpstan analyse"
],
"ci": [
"@composer run prepare",
"@php vendor/bin/phpstan analyse",
"@php vendor/bin/pint"
"@prepare",
"@lint",
"@test"
],
"test": [
"@php vendor/bin/phpunit -c ./ --color"
Expand All @@ -56,10 +59,6 @@
"serve": [
"@build",
"@php vendor/bin/testbench serve"
],
"lint": [
"@php vendor/bin/pint",
"@php vendor/bin/phpstan analyse"
]
},
"config": {
Expand Down

0 comments on commit 12e1419

Please sign in to comment.