Skip to content

Commit

Permalink
Deprecate versions and add static analysis (#173)
Browse files Browse the repository at this point in the history
* Deprecate versions and add static analysis

* wip
  • Loading branch information
driesvints authored Jan 26, 2024
1 parent b28fbba commit 0f29cfd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 83 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,4 @@ permissions:

jobs:
tests:
runs-on: ubuntu-22.04

strategy:
fail-fast: true

name: Static Analysis

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: none

- name: Install dependencies
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress

- name: Install Octane
run: |
composer require laravel/octane --with-all-dependencies --dev
- name: Execute type checking
run: vendor/bin/phpstan
uses: laravel/.github/.github/workflows/static-analysis.yml@main
47 changes: 4 additions & 43 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,15 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [6, 7, 8, 9, 10, 11]

php: ['8.0', 8.1, 8.2, 8.3]
laravel: [8, 9, 10, 11]
exclude:
- php: 7.2
laravel: 8
- php: 7.2
laravel: 9
- php: 7.2
laravel: 10
- php: 7.2
laravel: 11
- php: 7.3
laravel: 9
- php: 7.3
laravel: 10
- php: 7.3
laravel: 11
- php: 7.4
laravel: 9
- php: 7.4
- php: '8.0'
laravel: 10
- php: 7.4
- php: '8.0'
laravel: 11
- php: 8.0
laravel: 10
- php: 8.0
laravel: 11
- php: 8.1
laravel: 6
- php: 8.1
laravel: 7
- php: 8.1
laravel: 11
- php: 8.2
laravel: 6
- php: 8.2
laravel: 7
- php: 8.3
laravel: 6
- php: 8.3
laravel: 7
- php: 8.3
laravel: 8
- php: 8.3
Expand Down Expand Up @@ -83,11 +50,5 @@ jobs:
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Install Octane
run: |
composer require laravel/octane --with-all-dependencies --dev
if: |
matrix.php >= 8.0 && (matrix.laravel == '8' || matrix.laravel == '9' || matrix.laravel == '10' || matrix.laravel == '11')
- name: Execute unit tests
run: vendor/bin/phpunit
19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,25 @@
}
],
"require": {
"php": "^7.2|^8.0",
"php": "^8.0",
"aws/aws-sdk-php": "^3.80",
"guzzlehttp/promises": "^1.4|^2.0",
"guzzlehttp/guzzle": "^6.3|^7.0",
"hollodotme/fast-cgi-client": "^3.0",
"illuminate/container": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/queue": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"monolog/monolog": "^1.12|^2.0|^3.2",
"illuminate/container": "^8.0|^9.0|^10.0|^11.0",
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
"illuminate/queue": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"monolog/monolog": "^2.0|^3.2",
"nyholm/psr7": "^1.0",
"riverline/multipart-parser": "^2.0.9",
"symfony/process": "^4.3|^5.0|^6.0|^7.0",
"symfony/psr-http-message-bridge": "^1.0|^2.0|^6.4|^7.0"
"symfony/process": "^5.0|^6.0|^7.0",
"symfony/psr-http-message-bridge": "^2.0|^6.4|^7.0"
},
"require-dev": {
"laravel/octane": "^1.5|^2.3",
"mockery/mockery": "^1.2",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^8.0|^9.0|^10.4"
},
Expand Down

0 comments on commit 0f29cfd

Please sign in to comment.