From d5da0e6823b5956db73cbb0478958b1f163a31ec Mon Sep 17 00:00:00 2001 From: smiley Date: Wed, 8 Mar 2023 23:23:01 +0100 Subject: [PATCH] :octocat: CI update --- .github/workflows/tests.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 34f8779ee..6e0b64f72 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,6 +18,15 @@ jobs: runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php-version: + - "7.4" + - "8.0" + - "8.1" + - "8.2" + env: PHAN_ALLOW_XDEBUG: 0 PHAN_DISABLE_XDEBUG_WARN: 1 @@ -29,20 +38,22 @@ jobs: - name: "Install PHP" uses: shivammathur/setup-php@v2 with: - php-version: "7.4" + php-version: ${{ matrix.php-version }} coverage: none tools: pecl extensions: ast, gd, imagick, json, mbstring - name: "Update dependencies with composer" - run: composer update --no-interaction --no-ansi --no-progress --no-suggest + uses: ramsey/composer-install@v2 - name: "Run phan" - run: php vendor/bin/phan + run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }} tests: name: "Unit Tests" + needs: static-code-analysis + runs-on: ${{ matrix.os }} strategy: @@ -58,10 +69,6 @@ jobs: - "8.2" steps: -# - name: "Configure git to avoid issues with line endings" -# if: matrix.os == 'windows-latest' -# run: git config --global core.autocrlf false - - name: "Checkout" uses: actions/checkout@v3 @@ -74,7 +81,7 @@ jobs: extensions: gd, imagick, json, mbstring - name: "Install dependencies with composer" - run: composer update --no-ansi --no-interaction --no-progress --no-suggest + uses: ramsey/composer-install@v2 - name: "Run tests with phpunit" run: php vendor/bin/phpunit --configuration=phpunit.xml