Skip to content

Commit

Permalink
feat(ci): init tests on laravel 11
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed Mar 12, 2024
1 parent 910b7fd commit 975fe02
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
run: composer db:import

tests:
name: Test on PHP ${{ matrix.php }} with DB ${{ matrix.db }}
name: Test on PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} DB ${{ matrix.db }}
needs: [configs, prepare]
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -119,8 +119,14 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2']
db: ['mysql', 'pgsql', 'sqlite']
laravel: ['9.x', '10.x', '11.x']
php: ['8.1', '8.2', '8.3']
exclude:
- php: '8.1'
laravel: '11.x'
- php: '8.3'
laravel: '9.x'

steps:
- name: Checkout
Expand All @@ -144,7 +150,9 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
uses: ramsey/composer-install@v3
with:
composer-options: "--prefer-dist --no-progress --with=laravel/framework:${{ matrix.laravel }}"

- name: Run tests
run: composer test -- --coverage
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
"require": {
"php": "^8.1",
"ext-sqlite3": "*",
"laravel/framework": "^9.0|^10.0"
"laravel/framework": "^9.0|^10.0|^11.0"
},
"require-dev": {
"composer-runtime-api": "*",
"laravel/pint": "^1.1",
"nunomaduro/collision": "^7.4",
"nunomaduro/collision": "^7.4|^8.0",
"orchestra/testbench": "^8.5"
},
"config": {
Expand Down

0 comments on commit 975fe02

Please sign in to comment.