-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2c621c
commit 81e1592
Showing
10 changed files
with
537 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.event.number || github.sha }}' | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
php-version: [ '8.2', '8.3' ] | ||
name: Test on PHP ${{ matrix.php-version }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: curl, json, mbstring | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-source | ||
|
||
- name: Create Environments | ||
run: echo "${{ secrets.TEST_ENV_VARIABLES }}" > .env | ||
|
||
- name: Run test suite | ||
run: composer run-script test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,60 @@ | ||
{ | ||
"name": "telegram-bot-php/core", | ||
"description": "A PHP library that makes using Telegram Bot API much easier.", | ||
"keywords": [ | ||
"php", | ||
"library", | ||
"telegram", | ||
"update-handler", | ||
"bot", | ||
"core" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/telegram-bot-php/core", | ||
"support": { | ||
"issues": "https://github.com/telegram-bot-php/core/issues", | ||
"source": "https://github.com/telegram-bot-php/core" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Shahrad Elahi", | ||
"email": "shahrad@litehex.com" | ||
}, | ||
{ | ||
"name": "LiteHex", | ||
"email": "opensource@litehex.com" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"install-dependencies": "composer install --prefer-source", | ||
"phpunit-test": "vendor/bin/phpunit --colors=always --configuration phpunit.xml" | ||
}, | ||
"require": { | ||
"php": ">=8.0", | ||
"ext-curl": "*", | ||
"ext-json": "*", | ||
"ext-mbstring": "*", | ||
"guzzlehttp/guzzle": "^7.8", | ||
"symfony/dotenv": "^v6.4" | ||
}, | ||
"require-dev": { | ||
"fakerphp/faker": "^1.23", | ||
"phpunit/phpunit": "^9.5", | ||
"psr/log": "^1.1|^2.0|^3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"TelegramBot\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"TelegramBotTest\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"optimize-autoloader": true | ||
} | ||
"name": "telegram-bot-php/core", | ||
"description": "A PHP library that makes using Telegram Bot API much easier.", | ||
"keywords": [ | ||
"php", | ||
"library", | ||
"telegram", | ||
"update-handler", | ||
"bot", | ||
"core" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/telegram-bot-php/core", | ||
"support": { | ||
"issues": "https://github.com/telegram-bot-php/core/issues", | ||
"source": "https://github.com/telegram-bot-php/core" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Shahrad Elahi", | ||
"email": "shahrad@litehex.com" | ||
}, | ||
{ | ||
"name": "LiteHex", | ||
"email": "opensource@litehex.com" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": "phpunit --colors=always --configuration phpunit.xml" | ||
}, | ||
"require": { | ||
"php": ">=8.2", | ||
"ext-curl": "*", | ||
"ext-json": "*", | ||
"ext-mbstring": "*", | ||
"guzzlehttp/guzzle": "^7.8", | ||
"symfony/dotenv": "^v7.1" | ||
}, | ||
"require-dev": { | ||
"fakerphp/faker": "^1.23", | ||
"phpunit/phpunit": "^11.2", | ||
"psr/log": "^1.1|^2.0|^3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"TelegramBot\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"TelegramBotTest\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"optimize-autoloader": true | ||
} | ||
} |
Oops, something went wrong.