Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat: init support for 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 13, 2024
1 parent b9a6d1a commit dc658b6
Show file tree
Hide file tree
Showing 3 changed files with 1,377 additions and 1,041 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
db: ['mysql', 'pgsql']
laravel: ['10.x', '11.x']
php: [8.1, 8.2, 8.3]
exclude:
- php: 8.1
laravel: '11.x'

steps:
- name: Checkout
Expand All @@ -94,14 +98,16 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
run: |
composer require "laravel/framework=${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Run tests
run: composer test -- --coverage

- name: Generate reports for CodeClimate
id: reports
if: ${{ github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' }}
if: ${{ matrix.laravel == '10.x' && ( github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' ) }}
env:
COVERAGE_FILE: tests/reports/clover.xml
CODECLIMATE_REPORT: tests/reports/codeclimate.${{ matrix.php }}.json
Expand All @@ -114,7 +120,7 @@ jobs:
- name: Upload tests reports
uses: actions/upload-artifact@v4
if: ${{ github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' }}
if: ${{ matrix.laravel == '10.x' && ( github.actor != 'dependabot[bot]' || needs.configs.outputs.should-reports == '1' ) }}
with:
name: test-reports-${{ matrix.php }}-${{ matrix.db }}
path: tests/reports
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@
"require": {
"php": "^8.1",
"creasi/laravel-nusa": "^0.1.1",
"laravel/framework": "^9.0|^10.0"
"laravel/framework": "^9.0|^10.0|^11.0"
},
"require-dev": {
"composer-runtime-api": "*",
"laravel/pint": "^1.1",
"laravel/sanctum": "^3.2",
"nunomaduro/collision": "^7.4",
"orchestra/testbench": "^8.5"
"laravel/sanctum": "^3.2|^4.0",
"nunomaduro/collision": "^7.4|^8.0",
"orchestra/testbench": "^8.5|^9.0"
},
"config": {
"preferred-install": "dist",
Expand Down
Loading

0 comments on commit dc658b6

Please sign in to comment.