diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1f04c9d..ff70104 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,23 @@ jobs: strategy: matrix: - php-version: ["7.2", "7.3", "7.4", "8.0", "8.1"] + sf-version: [ '^4.4', '^5.4', '^6.3' ] + php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + exclude: + - sf-version: '^4.4' + php-version: '8.0' + - sf-version: '^4.4' + php-version: '8.1' + - sf-version: '^4.4' + php-version: '8.2' + - sf-version: '^6.3' + php-version: '7.2' + - sf-version: '^6.3' + php-version: '7.3' + - sf-version: '^6.3' + php-version: '7.4' + - sf-version: '^6.3' + php-version: '8.0' steps: - uses: actions/checkout@master @@ -45,8 +61,14 @@ jobs: - name: Install dependencies run: | - composer install --prefer-dist --no-interaction --no-ansi --no-progress + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require symfony/flex:^1.0 + export SYMFONY_REQUIRE="${{ matrix.sf-version }}" + composer update --prefer-dist --no-interaction --no-ansi --no-progress - name: Run the tests suite run: | php vendor/bin/simple-phpunit -v --log-junit ./phpunit/junit.xml + + - name: Run cmd + run: bin/insight list diff --git a/composer.json b/composer.json index b286257..b29e0fd 100644 --- a/composer.json +++ b/composer.json @@ -7,14 +7,14 @@ "ext-json": "*", "jms/serializer": "^3.17", "psr/log": "^1.0", - "symfony/http-client": "^4.4", - "symfony/console": "^4.4", - "symfony/expression-language": "^4.4" + "symfony/http-client": "^4.4|^5.4|^6.3", + "symfony/console": "^4.4|^5.4|^6.3", + "symfony/expression-language": "^4.4|^5.4|^6.3" }, "require-dev": { "monolog/monolog": "^1.4", - "symfony/phpunit-bridge": "^4.4|^5.3", - "symfony/var-dumper": "^4.4|^5.3" + "symfony/phpunit-bridge": "^4.4|^5.4|^6.3", + "symfony/var-dumper": "^4.4|^5.4|^6.3" }, "suggest": { "monolog/monolog": "Will add some log capability to this library"