From 352926fb5f0405fd81de234868292c082c8fc23b Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Fri, 3 Nov 2023 08:27:19 +0100 Subject: [PATCH] Run phpstan checks, try improve CI matrix --- .github/workflows/continuous-integration.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c506ff9..a3da2c2 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: include: - - {php-version: "7.4"} + - {php-version: "7.4", "8.1", "8.2", "8.3-rc"} steps: - name: "Checkout" uses: "actions/checkout@v4" @@ -58,6 +58,8 @@ jobs: matrix: include: - {glpi-version: "10.0", php-version: "7.4", db-image: "mysql:8.0"} + - {glpi-version: "10.0", php-version: "8.2", db-image: "mysql:8.0"} + - {glpi-version: "main", php-version: "8.2", db-image: "mysql:8.0"} services: app: image: "ghcr.io/glpi-project/githubactions-php:${{ matrix.php-version }}" @@ -95,3 +97,5 @@ jobs: docker exec ${{ job.services.app.id }} bin/console glpi:database:install --ansi --no-interaction --db-name=glpi --db-host=db --db-user=root --strict-configuration docker exec ${{ job.services.app.id }} bin/console glpi:plugin:install --ansi --no-interaction --username=glpi oauthimap docker exec ${{ job.services.app.id }} bin/console glpi:plugin:activate --ansi --no-interaction oauthimap + - name: PHPStan checks + run: docker exec cd glpi/plugins/fields && php vendor/bin/phpstan analyze --ansi --memory-limit=1G --no-interaction --no-progress