Skip to content

Commit 3514733

Browse files
committed
feat: Run phpunit on pull requests
1 parent fd97b6c commit 3514733

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/test-lib.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,21 @@ jobs:
2323
cd v6
2424
composer config extra.symfony.allow-contrib true
2525
composer require -W --ansi simply-stream/twitch-api-bundle:dev-${{ github.head_ref }}
26+
27+
run-qa-suite:
28+
name: Run PHPunit
29+
runs-on: Ubuntu-20.04
30+
31+
steps:
32+
- name: Setup PHP 8.2
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
coverage: "none"
36+
php-version: "8.2"
37+
38+
- uses: php-actions/composer@v6
39+
with:
40+
php_version: "8.2"
41+
42+
- name: Execute phpunit binary
43+
run: vendor/bin/phpunit

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getConfigTreeBuilder(): TreeBuilder
2121
$rootNode
2222
->children()
2323
->scalarNode('http_client')
24-
->isRequired()
24+
// ->isRequired()
2525
->info('Service id of HTTP client to use (must implement \Symfony\Contracts\HttpClient\HttpClientInterface)')
2626
->end()
2727
->arrayNode('token')

0 commit comments

Comments
 (0)