From c0d33e24d08bc7aef77b465a25bb3a941e401bde Mon Sep 17 00:00:00 2001 From: Rafael Kassner Date: Mon, 18 Mar 2024 18:40:11 +0100 Subject: [PATCH] test in multiple versions --- .github/workflows/code-analysis.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-analysis.yaml b/.github/workflows/code-analysis.yaml index 685b6f4..aaaba7b 100644 --- a/.github/workflows/code-analysis.yaml +++ b/.github/workflows/code-analysis.yaml @@ -8,12 +8,16 @@ jobs: name: code analysis runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] + steps: - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: ${{ matrix.php-versions }} tools: composer, php-cs-fixer, phpstan, phpunit - run: composer install --prefer-dist --no-progress