Skip to content

Commit 81e1592

Browse files
authored
chore: update deps (#12)
1 parent c2c621c commit 81e1592

File tree

10 files changed

+537
-631
lines changed

10 files changed

+537
-631
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
group: '${{ github.workflow }}-${{ github.event.number || github.sha }}'
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
test:
18+
strategy:
19+
matrix:
20+
php-version: [ '8.2', '8.3' ]
21+
name: Test on PHP ${{ matrix.php-version }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
extensions: curl, json, mbstring
31+
32+
- name: Validate composer.json and composer.lock
33+
run: composer validate --strict
34+
35+
- name: Cache Composer packages
36+
id: composer-cache
37+
uses: actions/cache@v3
38+
with:
39+
path: vendor
40+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
41+
42+
- name: Install dependencies
43+
run: composer install --prefer-source
44+
45+
- name: Create Environments
46+
run: echo "${{ secrets.TEST_ENV_VARIABLES }}" > .env
47+
48+
- name: Run test suite
49+
run: composer run-script test

.github/workflows/tests.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

composer.json

Lines changed: 58 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,60 @@
11
{
2-
"name": "telegram-bot-php/core",
3-
"description": "A PHP library that makes using Telegram Bot API much easier.",
4-
"keywords": [
5-
"php",
6-
"library",
7-
"telegram",
8-
"update-handler",
9-
"bot",
10-
"core"
11-
],
12-
"license": "MIT",
13-
"homepage": "https://github.com/telegram-bot-php/core",
14-
"support": {
15-
"issues": "https://github.com/telegram-bot-php/core/issues",
16-
"source": "https://github.com/telegram-bot-php/core"
17-
},
18-
"authors": [
19-
{
20-
"name": "Shahrad Elahi",
21-
"email": "shahrad@litehex.com"
22-
},
23-
{
24-
"name": "LiteHex",
25-
"email": "opensource@litehex.com"
26-
}
27-
],
28-
"minimum-stability": "dev",
29-
"prefer-stable": true,
30-
"scripts": {
31-
"install-dependencies": "composer install --prefer-source",
32-
"phpunit-test": "vendor/bin/phpunit --colors=always --configuration phpunit.xml"
33-
},
34-
"require": {
35-
"php": ">=8.0",
36-
"ext-curl": "*",
37-
"ext-json": "*",
38-
"ext-mbstring": "*",
39-
"guzzlehttp/guzzle": "^7.8",
40-
"symfony/dotenv": "^v6.4"
41-
},
42-
"require-dev": {
43-
"fakerphp/faker": "^1.23",
44-
"phpunit/phpunit": "^9.5",
45-
"psr/log": "^1.1|^2.0|^3.0"
46-
},
47-
"autoload": {
48-
"psr-4": {
49-
"TelegramBot\\": "src/"
50-
}
51-
},
52-
"autoload-dev": {
53-
"psr-4": {
54-
"TelegramBotTest\\": "tests/"
55-
}
56-
},
57-
"config": {
58-
"sort-packages": true,
59-
"optimize-autoloader": true
60-
}
2+
"name": "telegram-bot-php/core",
3+
"description": "A PHP library that makes using Telegram Bot API much easier.",
4+
"keywords": [
5+
"php",
6+
"library",
7+
"telegram",
8+
"update-handler",
9+
"bot",
10+
"core"
11+
],
12+
"license": "MIT",
13+
"homepage": "https://github.com/telegram-bot-php/core",
14+
"support": {
15+
"issues": "https://github.com/telegram-bot-php/core/issues",
16+
"source": "https://github.com/telegram-bot-php/core"
17+
},
18+
"authors": [
19+
{
20+
"name": "Shahrad Elahi",
21+
"email": "shahrad@litehex.com"
22+
},
23+
{
24+
"name": "LiteHex",
25+
"email": "opensource@litehex.com"
26+
}
27+
],
28+
"minimum-stability": "dev",
29+
"prefer-stable": true,
30+
"scripts": {
31+
"test": "phpunit --colors=always --configuration phpunit.xml"
32+
},
33+
"require": {
34+
"php": ">=8.2",
35+
"ext-curl": "*",
36+
"ext-json": "*",
37+
"ext-mbstring": "*",
38+
"guzzlehttp/guzzle": "^7.8",
39+
"symfony/dotenv": "^v7.1"
40+
},
41+
"require-dev": {
42+
"fakerphp/faker": "^1.23",
43+
"phpunit/phpunit": "^11.2",
44+
"psr/log": "^1.1|^2.0|^3.0"
45+
},
46+
"autoload": {
47+
"psr-4": {
48+
"TelegramBot\\": "src/"
49+
}
50+
},
51+
"autoload-dev": {
52+
"psr-4": {
53+
"TelegramBotTest\\": "tests/"
54+
}
55+
},
56+
"config": {
57+
"sort-packages": true,
58+
"optimize-autoloader": true
59+
}
6160
}

0 commit comments

Comments
 (0)