Skip to content

Commit

Permalink
chore: update deps (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahradelahi authored Jun 24, 2024
1 parent c2c621c commit 81e1592
Show file tree
Hide file tree
Showing 10 changed files with 537 additions and 631 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
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
35 changes: 0 additions & 35 deletions .github/workflows/tests.yml

This file was deleted.

117 changes: 58 additions & 59 deletions composer.json
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
}
}
Loading

0 comments on commit 81e1592

Please sign in to comment.