Skip to content

Fix running phpstan with php 8.4 #30

Fix running phpstan with php 8.4

Fix running phpstan with php 8.4 #30

Workflow file for this run

name: check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:lts
ports:
- 32574:3306
env:
MYSQL_DATABASE: flarum_test
MYSQL_ROOT_PASSWORD: root
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
php: ['7.3', '7.4', '8.0', '8.1', '8.2']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- uses: actions/checkout@v3
- name: Install dependencies & build
run: composer install && make
- name: Run test
env:
DB_HOST: 127.0.0.1
DB_PORT: 32574
DB_USERNAME: root
DB_PASSWORD: root
run: make test -k
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: tests/.phpunit.unit.cov.xml,tests/.phpunit.integration.cov.xml
analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install dependencies
run: make
- name: Analyse
run: make analyse