Skip to content

Commit

Permalink
Merge pull request #2 from tanhongit/develop
Browse files Browse the repository at this point in the history
update some config
  • Loading branch information
tanhongit committed Sep 29, 2023
2 parents 46e7804 + c49d641 commit 2856352
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 19 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/setup_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Setup and test

on: [ push, pull_request ]

jobs:
tests:
name: Setup and run tests
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ['8.0', '8.2']
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
composer install --no-interaction --no-progress --no-suggest
- name: Run tests
run: |
composer validate --strict
3 changes: 3 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
preset: laravel

disabled:
- not_operator_with_successor_space
31 changes: 17 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,7 @@
"telegram-bot-gitlab-notify"
],
"homepage": "https://github.com/lbiltech/laravel-telegram-git-notifier",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"LbilTech\\LaravelTelegramGitNotifier\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"LbilTech\\LaravelTelegramGitNotifier\\Tests\\": "tests/"
}
},
"authors": [
{
"name": "Tan Nguyen",
Expand All @@ -41,12 +30,23 @@
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"LbilTech\\LaravelTelegramGitNotifier\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"LbilTech\\LaravelTelegramGitNotifier\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.0"
"php": "^8.0",
"lbiltech/telegram-git-notifier": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5|^10.0",
"mockery/mockery": "^1.5"
"mockery/mockery": "^1.6"
},
"support": {
"issues": "https://github.com/lbiltech/laravel-telegram-git-notifier/issues"
Expand All @@ -58,6 +58,9 @@
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
2 changes: 1 addition & 1 deletion lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

return [

];
];
20 changes: 20 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
colors="true"
processIsolation="false"
stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="LbilTech Laravel Telegram Git Notify">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
6 changes: 3 additions & 3 deletions src/Providers/TelegramGitNotifierServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace LbilTech\LaravelTelegramGitNotifier\App\Providers;
namespace LbilTech\LaravelTelegramGitNotifier\Providers;

use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -31,7 +31,7 @@ public function boot(): void
$this->loadTranslationsFrom(__DIR__.'/../../lang', 'telegram-git-notifier');

$this->publishes([
__DIR__.'/../../lang' => resource_path('lang/vendor/laravel-generator'),
__DIR__.'/../../lang' => resource_path('lang/vendor/telegram-git-notifier'),
], 'lang');
}

Expand All @@ -55,4 +55,4 @@ public function provides(): ?array
{
return ['telegram-git-notifier'];
}
}
}
2 changes: 1 addition & 1 deletion tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
|--------------------------------------------------------------------------
| Integration
|--------------------------------------------------------------------------
*/
*/

0 comments on commit 2856352

Please sign in to comment.