Skip to content

Commit

Permalink
feat: laravel 9
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for laravel 6-8. Require PHP 8.2.
  • Loading branch information
audunrunhn committed Jul 17, 2023
1 parent 7ddfb63 commit eba2c2d
Show file tree
Hide file tree
Showing 9 changed files with 2,022 additions and 1,548 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Status

on:
pull_request:
branches: [master]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Validate Pull Request Title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Validate commit messages
uses: wagoid/commitlint-github-action@v5

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
# Taken from https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.1/Dockerfile
extensions: mbstring, mysql, xml, xsl, zip, curl, bcmath, intl, bz2

- name: Install composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Validate PHP code
run: composer verify

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
}
],
"require": {
"php": "^8.0",
"laravel/framework": "^6.0|^7.0|^8.0|^9.0",
"php": "^8.2",
"laravel/framework": "^9.0",
"spatie/enum": "^3.9",
"spatie/laravel-package-tools": "^1.9",
"timacdonald/has-parameters": "^1.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"orchestra/testbench": "^4.0|^5.0|^6.7|^7.0",
"orchestra/testbench": "^7.0",
"php-coveralls/php-coveralls": "^2.2",
"phpmd/phpmd": "^2.10",
"phpunit/phpunit": "^8.5|^9.0",
"phpunit/phpunit": "^9.0",
"roave/security-advisories": "dev-latest",
"spatie/array-to-xml": "^3.1",
"spatie/simple-excel": "^1.14"
"spatie/simple-excel": "^3.0"
},
"config": {
"optimize-autoloader": true,
Expand Down

0 comments on commit eba2c2d

Please sign in to comment.