Skip to content

Commit

Permalink
Run phpstan checks, try improve CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Nov 3, 2023
1 parent 5e6b08f commit 222e1dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
matrix:
include:
- {php-version: "7.4"}
- {php-version: "8.1"}
- {php-version: "8.2"}
- {php-version: "8.3-rc"}
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
Expand Down Expand Up @@ -51,13 +54,15 @@ jobs:
vendor/bin/licence-headers-check --ansi --no-interaction
tests:
name: "Test on GLPI ${{ matrix.glpi-version }}"
name: "Test on GLPI ${{ matrix.glpi-version }} with PHP ${{ matrix.php-version }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
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 }}"
Expand Down Expand Up @@ -95,3 +100,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 ${{ job.services.app.id }} cd plugins/oauthimap && php vendor/bin/phpstan analyze --ansi --memory-limit=1G --no-interaction --no-progress

0 comments on commit 222e1dd

Please sign in to comment.