Skip to content

Commit

Permalink
Downgrade php version to 8.1 to have the same version as Laravel has
Browse files Browse the repository at this point in the history
  • Loading branch information
karoldabro committed Jun 16, 2024
1 parent 7e76bd2 commit 1f84815
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,28 @@ jobs:
with:
php-version: '8.2'
- uses: actions/checkout@v3
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: testing
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit


tests81:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.1'
- uses: actions/checkout@v3
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create Database
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
}
],
"require": {
"php": ">=8.2.0",
"php": ">=8.1.0",
"illuminate/support": "^10.0",
"illuminate/validation": "^10.0"
},
"require-dev": {
"orchestra/testbench": "^8.0",
"barryvdh/laravel-ide-helper": "^3.0"
"orchestra/testbench": "^8.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
php:
image: webdevops/php-dev:8.2
image: webdevops/php-dev:8.1
volumes:
- ./:/app/
working_dir: /app
Expand Down

0 comments on commit 1f84815

Please sign in to comment.