Skip to content

Commit 385544a

Browse files
committed
adding some changes 🚀 🚀
- drop php 8.1 - update validator - other changes
1 parent 00ed6f0 commit 385544a

16 files changed

+168
-151
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: abr4xas
1+
custom: https://angelcruz.dev/donate

.github/ISSUE_TEMPLATE/config.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Ask a question
4-
url: https://github.com/abr4xas/php-instapago/discussions/new?category=q-a
5-
about: Ask the community for help
6-
- name: Request a feature
7-
url: https://github.com/abr4xas/php-instapago/discussions/new?category=ideas
8-
about: Share ideas for new features
9-
- name: Report a security issue
10-
url: https://github.com/abr4xas/php-instapago/security/policy
11-
about: Learn how to notify us for sensitive bugs
12-
- name: Report a bug
13-
url: https://github.com/abr4xas/php-instapago/issues/new
14-
about: Report a reproducable bug
3+
- name: Ask a question
4+
url: https://github.com/abr4xas/php-instapago/discussions/new?category=q-a
5+
about: Ask the community for help
6+
- name: Request a feature
7+
url: https://github.com/abr4xas/php-instapago/discussions/new?category=ideas
8+
about: Share ideas for new features
9+
- name: Report a security issue
10+
url: https://github.com/abr4xas/php-instapago/security/policy
11+
about: Learn how to notify us for sensitive bugs

.github/dependabot.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@ updates:
99
schedule:
1010
interval: "weekly"
1111
labels:
12-
- "dependencies"
12+
- "dependencies"
13+
14+
- package-ecosystem: "composer"
15+
directory: "/"
16+
schedule:
17+
interval: "weekly"
18+
labels:
19+
- "dependencies"

.github/workflows/dependabot-auto-merge.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ permissions:
88
jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 5
1112
if: ${{ github.actor == 'dependabot[bot]' }}
1213
steps:
1314

.github/workflows/fix-php-code-style-issues-cs-fixer.yml

-26
This file was deleted.

.github/workflows/fix-php-code-style-issues-pint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
php-code-styling:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 5
1415

1516
steps:
1617
- name: Checkout code

.github/workflows/run-tests-pest.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
name: Tests
22

3-
on: [pull_request]
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- '.github/workflows/run-tests.yml'
8+
- 'phpunit.xml.dist'
9+
- 'composer.json'
10+
- 'composer.lock'
411

512
jobs:
613
test:
714
runs-on: ${{ matrix.os }}
15+
timeout-minutes: 5
816
strategy:
917
fail-fast: true
1018
matrix:
1119
os: [ubuntu-latest, windows-latest]
12-
php: [8.2, 8.1]
20+
php: [8.2, 8.3, 8.4]
1321
stability: [prefer-lowest, prefer-stable]
1422

1523
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -33,5 +41,8 @@ jobs:
3341
- name: Install dependencies
3442
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3543

44+
- name: List Installed Dependencies
45+
run: composer show -D
46+
3647
- name: Execute tests
37-
run: vendor/bin/pest
48+
run: vendor/bin/pest --ci

.github/workflows/update-changelog.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ permissions:
1010
jobs:
1111
update:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 5
1314

1415
steps:
1516
- name: Checkout code
1617
uses: actions/checkout@v4
1718
with:
18-
ref: master
19+
ref: main
1920

2021
- name: Update Changelog
2122
uses: stefanzweifel/changelog-updater-action@v1
@@ -26,6 +27,6 @@ jobs:
2627
- name: Commit updated CHANGELOG
2728
uses: stefanzweifel/git-auto-commit-action@v5
2829
with:
29-
branch: master
30+
branch: main
3031
commit_message: Update CHANGELOG
3132
file_pattern: CHANGELOG.md

.phpunit.cache/test-results

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"pest_2.36.0","defects":[],"times":{"P\\Tests\\ApiInstapagoTest::__pest_evaluable_it_can_trow_an_invalid_input_error":0.533,"P\\Tests\\ApiInstapagoTest::__pest_evaluable_it_can_create_a_direct_payment":0.652,"P\\Tests\\ApiInstapagoTest::__pest_evaluable_it_can_create_a_reserved_payment":0.683,"P\\Tests\\ApiInstapagoTest::__pest_evaluable_it_can_complete_the_payment":0.588,"P\\Tests\\ApiInstapagoTest::__pest_evaluable_it_can_check_if_the_payment_is_authorized":0.543,"P\\Tests\\ApiInstapagoTest::__pest_evaluable_it_can_cancel_a_payment":0.713}}

composer.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instapago/instapago",
3-
"description": ":D",
3+
"description": "Instapago is a technological solution designed for the market of electronic commerce (eCommerce) in Venezuela and Latin America, with the intention of offering a premium product category, which allows people and companies leverage their expansion capabilities, facilitating payment mechanisms for customers with a friendly integration into systems currently used.",
44
"keywords": [
55
"Instapago",
66
"instapago"
@@ -15,12 +15,13 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^8.1",
19-
"guzzlehttp/guzzle": "^7.5.1"
18+
"php": "^8.2|^8.3|^8.4",
19+
"guzzlehttp/guzzle": "^7.9.2"
2020
},
2121
"require-dev": {
22-
"laravel/pint": "^1.10",
23-
"pestphp/pest": "^2.6"
22+
"laravel/pint": "^1.18.3",
23+
"mockery/mockery": "^1.6",
24+
"pestphp/pest": "^3.7"
2425
},
2526
"autoload": {
2627
"psr-4": {

pint.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"preset": "psr12",
3+
"rules": {
4+
"blank_line_before_statement": true,
5+
"method_argument_space": true,
6+
"single_trait_insert_per_statement": true,
7+
"types_spaces": {
8+
"space": "single"
9+
},
10+
"align_multiline_comment": true,
11+
"array_indentation": true,
12+
"array_syntax": true,
13+
"concat_space": {
14+
"spacing": "one"
15+
},
16+
"explicit_string_variable": true,
17+
"fully_qualified_strict_types": true
18+
}
19+
}

0 commit comments

Comments
 (0)