From c35137b9d4e511cb0efe72b6cf1f870c8bcade31 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Fri, 3 Sep 2021 20:27:25 -0500 Subject: [PATCH] Fix github workflow --- .github/workflows/build.yml | 15 ++++++--------- composer.json | 1 - 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69d109a..5aef823 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: ci: # this job runs all the development tools and upload code coverage to scrutinizer - name: Continuous Integration + name: PHP 8.0 (full) runs-on: "ubuntu-latest" steps: @@ -24,9 +24,8 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.0' - extensions: dom coverage: xdebug - tools: composer:v2, phpcs, php-cs-fixer, phpstan, cs2pr + tools: composer:v2, phpcs, php-cs-fixer, phpstan, psalm, infection, cs2pr env: fail-fast: true @@ -51,7 +50,7 @@ jobs: run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr - name: Tests (phpunit with code coverage) - run: vendor/bin/phpunit --testdox --verbose --coverage-clover=build/coverage-clover.xml + run: vendor/bin/phpunit --testdox --verbose --coverage-xml=build/coverage --log-junit=build/coverage/junit.xml - name: Code analysis (phpstan) run: phpstan analyse --no-progress --verbose @@ -60,17 +59,16 @@ jobs: run: psalm --no-progress --output-format=github - name: Mutation testing analysis - run: - continue-on-error: true + run: infection --skip-initial-tests --coverage=build/coverage --no-progress --no-interaction --logger-github build: # this job runs tests on all php supported versions - name: PHP ${{ matrix.php-versions }} + name: PHP ${{ matrix.php-versions }} (tests) runs-on: "ubuntu-latest" strategy: matrix: - php-versions: ['7.3', '7.4', '8.0'] + php-versions: ['7.3', '7.4'] steps: @@ -82,7 +80,6 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - extensions: dom coverage: none tools: composer:v2, cs2pr env: diff --git a/composer.json b/composer.json index 70f8eae..1a179c2 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,6 @@ }, "require": { "php": ">=7.3", - "ext-dom": "*", "eclipxe/enum": "^0.2" }, "require-dev": {