Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 13 additions & 19 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,21 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.3, 8.4 ]
php: [ 8.2, 8.3, 8.4, 8.5 ]
laravel: [ 9.*, 10.*, 11.*, 12.* ]
include:
- laravel: 12.*
testbench: 10.*
termwind: 2.*
pest: 3.*
- laravel: 11.*
testbench: 9.*
termwind: 2.*
pest: 2.*
- laravel: 10.*
testbench: 8.*
termwind: 1.*
pest: 1.*
- laravel: 9.*
testbench: 7.*
termwind: 1.*
pest: 1.*

name: PHP ${{ matrix.php }} + Laravel ${{ matrix.laravel }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -44,8 +36,8 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "nunomaduro/termwind:${{ matrix.termwind }}" --no-interaction --no-update
composer require "orchestra/testbench:${{ matrix.testbench }}" "pestphp/pest:${{ matrix.pest }}" --dev --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-update
composer update --prefer-dist --no-interaction

- name: Run test suite
Expand All @@ -55,7 +47,7 @@ jobs:
needs: [ tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -79,17 +71,19 @@ jobs:
run: composer install --prefer-dist --no-interaction --no-suggest

- name: Run test suite
uses: paambaati/codeclimate-action@v9
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_REPORTER_ID }}
run: composer run-script test-coverage

- name: Upload Coverage
uses: qltysh/qlty-action/coverage@v2
with:
coverageCommand: composer run-script test-coverage
coverageLocations: ${{github.workspace}}/coverage.xml:clover
token: ${{ secrets.COVERAGE_TOKEN }}
files: ${{github.workspace}}/coverage.xml
format: clover
static-analysis:
runs-on: ubuntu-latest
name: Psalm
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
[![Nutgram](https://img.shields.io/packagist/dependency-v/nutgram/laravel/nutgram/nutgram?logo=telegram&label=nutgram)](https://github.com/nutgram/nutgram)

![Tests](https://img.shields.io/github/actions/workflow/status/nutgram/laravel/php.yml?label=Test%20Suite&logo=github)
[![Test Coverage](https://api.codeclimate.com/v1/badges/feaa33a8d1431d16998d/test_coverage)](https://codeclimate.com/github/nutgram/laravel/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/feaa33a8d1431d16998d/maintainability)](https://codeclimate.com/github/nutgram/laravel/maintainability)
[![Code Coverage](https://qlty.sh/gh/nutgram/projects/laravel/coverage.svg)](https://qlty.sh/gh/nutgram/projects/laravel)
[![Maintainability](https://qlty.sh/gh/nutgram/projects/laravel/maintainability.svg)](https://qlty.sh/gh/nutgram/projects/laravel)

[Nutgram](https://github.com/nutgram/nutgram) Package for Laravel 9.0+.

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"require": {
"php": "^8.2",
"nunomaduro/termwind": "^1.0|^2.0",
"nutgram/nutgram": "^4.20"
"nutgram/nutgram": "^4.39.2"
},
"require-dev": {
"illuminate/testing": "^9.0|^10.0|^11.0|^12.0",
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
"pestphp/pest": "^1.1|^2.0|^3.0",
"pestphp/pest": "^1.1|^2.0|^3.0|^4.0",
"vimeo/psalm": "^6.0"
},
"autoload": {
Expand Down