diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b8580cf..94c9382 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,9 +58,8 @@ jobs: #- name: Check PSR-12 Codestyle # run: composer lint - # - name: Upload Coverage - # uses: codecov/codecov-action@v1 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # file: ./coverage/coverage.xml - # fail_ci_if_error: true \ No newline at end of file + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + env: + token: ${{ secrets.CODECOV_TOKEN }} + slug: RamiiYoussef/laravel-kafka \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 364f1e4..0a2503b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -17,9 +17,4 @@ ./tests/ - - - src/ - - \ No newline at end of file diff --git a/phpunit.xml.dist.bak b/phpunit.xml.dist.bak new file mode 100644 index 0000000..ee21baa --- /dev/null +++ b/phpunit.xml.dist.bak @@ -0,0 +1,30 @@ + + + + + src/ + + + + + ./tests/ + ./tests/ + + + + + src/ + + + \ No newline at end of file diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index cb1ba6b..5e459a8 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -34,7 +34,7 @@ public function boot() { $this->publishes([ __DIR__ . '/../config/kafka.php' => config_path('kafka.php'), - ]); + ], 'laravel-kafka-config'); } /** @@ -233,7 +233,7 @@ public function registerQueue() private function registerConnector($manager, $container) { $manager->addConnector('kafka', function () use ($container) { - return new KafkaConnector($container, $container['log']); + return new KafkaConnector($container['kafka'], $container['log']); }); }