Files
max-bot-api-client-php/.github/workflows/ci.yml
T

57 lines
1.4 KiB
YAML

name: CI
on: [ push, pull_request ]
jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
coverage: none
- name: Install composer dependencies
run: composer install --prefer-dist --no-interaction
- name: Run Static Analysis
run: ./vendor/bin/phpstan analyse -c phpstan.neon --error-format=github
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ "8.3", "8.4", "8.5" ]
guzzle-versions: [ "^7.0", "^8.0" ]
include:
- guzzle-versions: "^7.0"
laravel-version: "^12.0"
- guzzle-versions: "^8.0"
laravel-version: "^13.0"
name: PHP ${{ matrix.php-versions }} / Guzzle ${{ matrix.guzzle-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Install composer dependencies
run: composer update --prefer-dist --no-interaction --with "guzzlehttp/guzzle:${{ matrix.guzzle-versions }}" --with "laravel/framework:${{ matrix.laravel-version }}"
- name: PHPUnit
run: ./vendor/bin/phpunit --configuration=phpunit.xml --coverage-text