Skip to content

Commit

Permalink
Update vendors and CI (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Dec 1, 2023
1 parent 7e5a85a commit 93018fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: "Composer Validate"
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Validate composer.json'
run: composer validate --no-check-all --strict --no-check-lock
Expand All @@ -23,7 +23,7 @@ jobs:
name: "Composer Install"
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -44,7 +44,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -69,7 +69,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- '8.2'
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -112,7 +112,7 @@ jobs:
working-directory: './'

- name: 'Run PHPUnit'
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist
run: ./vendor/bin/phpunit -c phpunit.xml.dist

code-coverage:
needs: test
Expand All @@ -122,7 +122,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -137,16 +137,17 @@ jobs:
working-directory: './'

- name: 'Run PHPUnit with Code Coverage'
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist --coverage-clover=coverage.xml
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.xml

- name: 'Download Coverage Files'
uses: actions/download-artifact@v2
with:
path: reports

- name: 'Upload to Codecov'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
flags: unittests
verbose: true
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"psr/clock": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.38",
"friendsofphp/php-cs-fixer": "^3.40",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.4",
"slam/phpstan-extensions": "^6.0",
"phpunit/phpunit": "^10.5",
"slam/phpstan-extensions": "^6.1",
"squizlabs/php_codesniffer": "^3.7",
"thecodingmachine/phpstan-strict-rules": "^1.0"
},
Expand Down

0 comments on commit 93018fc

Please sign in to comment.