fix non-www middleware issue with trusted proxy #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 10 | |
matrix: | |
laravel-version: ['^8.0', '^9.0', '^10.0'] | |
preference: ['stable'] | |
experimental: [false] | |
php-version: ['8.0', '8.1', '8.2'] | |
exclude: | |
- laravel-version: ^10.0 | |
php-version: 8.0 | |
name: Laravel ${{ matrix.laravel-version }} (${{ matrix.preference }}) on PHP ${{ matrix.php-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, xdebug | |
coverage: xdebug | |
- name: Install dependencies | |
run: | | |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}" | |
composer update --prefer-${{ matrix.preference }} --no-interaction --prefer-dist --no-scripts --optimize-autoloader | |
- name: Lint composer.json | |
run: composer validate | |
- name: Run Tests | |
run: composer test:ci | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} #required | |
file: ./coverage.xml #optional | |
flags: unittests #optional | |
name: codecov-umbrella #optional | |
fail_ci_if_error: true #optional (default = false) |