Skip to content

Commit 4229947

Browse files
author
farhadzand
committed
fix sq
1 parent 6ad68c4 commit 4229947

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/code-quality.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
- main
1010

1111
jobs:
12-
scrutinizer:
13-
name: Scrutinizer
12+
test-and-analyze:
13+
name: Test & Analyze
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout code
@@ -22,7 +22,7 @@ jobs:
2222
uses: shivammathur/setup-php@v2
2323
with:
2424
php-version: 8.1
25-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
25+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
2626
coverage: xdebug
2727
tools: composer:v2
2828

@@ -43,10 +43,8 @@ jobs:
4343
- name: Run PHPUnit with coverage
4444
run: vendor/bin/phpunit --coverage-clover=coverage.clover
4545

46-
- name: Upload coverage to Scrutinizer
47-
uses: sudo-bot/action-scrutinizer@latest
48-
with:
49-
cli-args: "--format=php-clover coverage.clover"
50-
wait-for-analysis: true
51-
env:
52-
SCRUTINIZER_TOKEN: ${{ secrets.SCRUTINIZER_TOKEN }}
46+
- name: Trigger Scrutinizer analysis
47+
run: |
48+
wget https://scrutinizer-ci.com/ocular.phar
49+
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
50+
continue-on-error: true

.scrutinizer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ build:
1313

1414
nodes:
1515
analysis:
16-
image: scrutinizer/scrutinizer
16+
image: default-jammy
1717
tests:
1818
override:
1919
- php-scrutinizer-run
2020

2121
coverage:
22-
image: scrutinizer/scrutinizer
22+
image: default-jammy
2323
tests:
2424
override:
2525
- command: vendor/bin/phpunit --coverage-clover=coverage.clover

0 commit comments

Comments
 (0)