Skip to content

Commit

Permalink
Added supporting laravel 9.0 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsaintpe authored Jul 28, 2022
1 parent 528ee06 commit 8feba79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- operating_system: ubuntu-latest
postgres: '13'
php_versions: '8.0'
laravel: '^8.0'
laravel: '^9.0'
experimental: false
coverage: false
runs-on: '${{ matrix.operating_system }}'
Expand Down Expand Up @@ -176,14 +176,11 @@ jobs:
composer.json.sample > composer.json
composer create-project --prefer-dist laravel/laravel:${{ matrix.laravel }} release
rm -rf release/database/migrations
rm release/composer.json
rm release/.env
rm -rf release/tests
cp composer.json release/composer.json
cp -rf database/new_migrations release/database/migrations
cp .env release/.env
cd release && COMPOSER_MEMORY_LIMIT=-1 composer update
cd ../../
cd ../
sed -e "s/\${USERNAME}/${{ env.DB_USER }}/" \
-e "s/\${PASSWORD}/${{ env.DB_PASSWORD }}/" \
-e "s/\${DATABASE}/${{ env.DB_NAME }}/" \
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
},
"require": {
"php": "^7.3|^7.4|^8.0",
"illuminate/support": "^5.7|^6.20|^7.30|^8.20",
"illuminate/database": "^5.7|^6.20|^7.30|^8.20",
"illuminate/console": "^5.7|^6.20|^7.30|^8.20"
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0",
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0",
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0"
},
"require-dev": {
"phpunit/phpunit": "^7.3|^8.5|^9.4",
"php-mock/php-mock": "^2.0",
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2",
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0",
"umbrellio/code-style-php": "^1.0",
"laravel/legacy-factories": "^1.0",
"php-coveralls/php-coveralls": "^2.1",
Expand Down
12 changes: 6 additions & 6 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ sed -e "s/\${USERNAME}/postgres/" \
-e "s/\${HOST}/127.0.0.1/" \
.env.sample > .env
sed -e "s/\${LARAVEL_VERSION}/^8.0/" \
-e "s/\${PHP_VERSION}/7.4.16/" \
-e "s/\${PHP_VERSION}/8.0.11/" \
composer.json.sample > composer.json
rm -rf release
composer create-project laravel/laravel release
rm -rf release/database/migrations
rm release/composer.json
# rm release/composer.json
rm release/.env
rm -rf release/tests
cp composer.json release/composer.json
# cp composer.json release/composer.json
cp -rf database/new_migrations release/database/migrations
cp .env release/.env
cd release && COMPOSER_MEMORY_LIMIT=-1 composer update
cd ../../ && COMPOSER_MEMORY_LIMIT=-1 composer update
composer lint-fix
# cd release && COMPOSER_MEMORY_LIMIT=-1 composer update
cd ../ && COMPOSER_MEMORY_LIMIT=-1 composer update
# composer lint-fix
sed -e "s/\${USERNAME}/postgres/" \
-e "s/\${PASSWORD}//" \
-e "s/\${DATABASE}/testing/" \
Expand Down

0 comments on commit 8feba79

Please sign in to comment.