Skip to content

Commit

Permalink
Merge pull request #18 from eclipxe13/main
Browse files Browse the repository at this point in the history
Fix github workflow
  • Loading branch information
eclipxe13 authored Sep 4, 2021
2 parents e5ad7e9 + c35137b commit 5fd4ad4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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:

Expand All @@ -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:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
},
"require": {
"php": ">=7.3",
"ext-dom": "*",
"eclipxe/enum": "^0.2"
},
"require-dev": {
Expand Down

0 comments on commit 5fd4ad4

Please sign in to comment.