Skip to content

Commit

Permalink
build: bring back PHP 8.1, because it is supported by Laravel 10
Browse files Browse the repository at this point in the history
Jasonej committed Mar 11, 2024
1 parent eba74b5 commit 9def508
Showing 2 changed files with 6 additions and 15 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -7,15 +7,9 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
laravel: [10.0, 11.0]
stability: ["--prefer-lowest", "--prefer-stable"]
include:
- laravel: 10.0
testbench: 8.0
- laravel: 11.0
testbench: 9.0
name: PHP ${{ matrix.php }} - Laravel v${{ matrix.laravel }} - ${{ matrix.stability }}
php: [8.1, 8.2, 8.3]
stability: ["--prefer-lowest", "--prefer-stable", ""]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -36,15 +30,12 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-
${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-
- name: Install dependencies
run: composer update ${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest

- name: Require specific versions of packages
run: composer update laravel/framework:^${{ matrix.laravel }} orchestra/testbench:^${{ matrix.testbench }} -W

- name: Execute tests
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
}
},
"require": {
"php": "^8.2",
"php": "^8.1",
"laravel/framework": "^10.0|^11.0|11.x-dev"
},
"require-dev": {

0 comments on commit 9def508

Please sign in to comment.