Skip to content

Commit 06537ba

Browse files
committed
- adds github actions
1 parent 83b4fcc commit 06537ba

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,13 @@ jobs:
6767
- name: Run unit tests
6868
if: ${{ matrix.php != '8.2' || matrix.redis != '7' }}
6969
run: vendor/bin/phpunit
70+
71+
- name: Create coverage report
72+
if: ${{ matrix.php == '8.2' && matrix.redis == '7' && github.repository == 'kodedphp/cache-simple' }}
73+
run: vendor/bin/phpunit --coverage-clover build/clover.xml
74+
75+
- name: Send coverage
76+
uses: sudo-bot/action-scrutinizer@latest
77+
if: ${{ matrix.php == '8.2' && matrix.redis == '7' && github.repository == 'kodedphp/cache-simple' }}
78+
with:
79+
cli-args: "--format=php-clover build/clover.xml --revision=${{ github.sha }}"

.scrutinizer.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
stop_on_failure: true
6+
override:
7+
- php-scrutinizer-run
8+
environment:
9+
php:
10+
version: '8.1.2'
11+
12+
before_commands:
13+
- 'composer update -o --prefer-source --no-interaction'
14+
15+
filter:
16+
excluded_paths:
17+
- 'bench/*'
18+
- 'build/*'
19+
- 'tests/*'
20+
- 'vendor/*'
21+
22+
tools:
23+
external_code_coverage: true
24+
php_analyzer: true
25+
php_code_sniffer: true

0 commit comments

Comments
 (0)