Skip to content

build(deps-dev): Update phpstan/phpstan requirement from ^1.10 to ^1.10 || ^2.0 in /laravel-infrastructure #70

build(deps-dev): Update phpstan/phpstan requirement from ^1.10 to ^1.10 || ^2.0 in /laravel-infrastructure

build(deps-dev): Update phpstan/phpstan requirement from ^1.10 to ^1.10 || ^2.0 in /laravel-infrastructure #70

name: laravel-infrastructure-test
on:
push:
branches: [ master ]
paths:
- 'laravel-infrastructure/**'
pull_request:
branches: [ master ]
paths:
- 'laravel-infrastructure/**'
defaults:
run:
working-directory: ./laravel-infrastructure
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php_version: [ 81, 82, 83 ]
include:
- php_version: 81
original_php_version: 8.1
record_coverage: false
- php_version: 82
original_php_version: 8.2
record_coverage: false
- php_version: 83
original_php_version: 8.3
record_coverage: true
concurrency:
group: laravel-infrastructure-test-${{ github.workflow }}-${{ github.ref }}-${{ matrix.php_version }}
cancel-in-progress: true
container: ghcr.io/abenevaut/vapor-ci:php${{ matrix.php_version }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Configure Composer cache
uses: actions/cache@v4
with:
path: laravel-infrastructure/vendor
key: ${{ runner.os }}-node-php_${{ matrix.php_version }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-node-php_${{ matrix.php_version }}-
- name: Validate Composer.json
run: composer validate --strict
- name: Composer install
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install -o --no-interaction --prefer-dist
- name: Run tests
run: |
vendor/bin/phpstan analyse
vendor/bin/phpcs --standard=PSR12 src tests
vendor/bin/phpunit
- name: Send coverage
if: ${{ matrix.record_coverage }}
run: codecov -f coverage/clover.xml -F laravel-infrastructure
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}