Skip to content

Commit

Permalink
- adds github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kodeart committed Oct 16, 2023
1 parent 83b4fcc commit 06537ba
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,13 @@ jobs:
- name: Run unit tests
if: ${{ matrix.php != '8.2' || matrix.redis != '7' }}
run: vendor/bin/phpunit

- name: Create coverage report
if: ${{ matrix.php == '8.2' && matrix.redis == '7' && github.repository == 'kodedphp/cache-simple' }}
run: vendor/bin/phpunit --coverage-clover build/clover.xml

- name: Send coverage
uses: sudo-bot/action-scrutinizer@latest
if: ${{ matrix.php == '8.2' && matrix.redis == '7' && github.repository == 'kodedphp/cache-simple' }}
with:
cli-args: "--format=php-clover build/clover.xml --revision=${{ github.sha }}"
25 changes: 25 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
build:
nodes:
analysis:
tests:
stop_on_failure: true
override:
- php-scrutinizer-run
environment:
php:
version: '8.1.2'

before_commands:
- 'composer update -o --prefer-source --no-interaction'

filter:
excluded_paths:
- 'bench/*'
- 'build/*'
- 'tests/*'
- 'vendor/*'

tools:
external_code_coverage: true
php_analyzer: true
php_code_sniffer: true

0 comments on commit 06537ba

Please sign in to comment.