Skip to content

Commit

Permalink
Merge pull request #15 from cixware/update-code
Browse files Browse the repository at this point in the history
Update code
  • Loading branch information
remotemerge authored Dec 25, 2023
2 parents 2874e88 + 63efaae commit 1111376
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 1,092 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# The workflow to install the package on different OS and PHP versions
name: Install

# run on
# Trigger the workflow on new releases
on:
release:
types: [created]
branches: [main]
types: [ created ]
branches: [ main ]

jobs:
Test:
# Current OS
php-test:
# Run on the latest OS versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
# OS list
os: [ubuntu-latest]
# Supported PHP versions
php: ['7.4', '8.0', '8.1', '8.2']
# Define the OS and PHP versions to test
os: [ ubuntu-latest, windows-latest, macos-latest ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]

steps:
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, simplexml

- name: "Display version information"
- name: "Display PHP and Composer version information"
run: php --version && composer --version

- name: "Initialize composer"
- name: "Initialize Composer"
run: composer init --no-interaction --stability=stable

- name: "Install dependencies"
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cixware/esewa-php-sdk",
"version": "2.5.0",
"version": "2.6.0",
"type": "library",
"description": "eSewa payment gateway integration in PHP.",
"homepage": "https://github.com/cixware/esewa-php-sdk",
Expand All @@ -27,13 +27,13 @@
],
"require": {
"php": ">=7.4",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^7.5"
"ext-curl": "*",
"ext-simplexml": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.15",
"phpunit/phpunit": "^9.6",
"rector/rector": "^0.15"
"friendsofphp/php-cs-fixer": "^3.42",
"phpunit/phpunit": "^9.6.15",
"rector/rector": "^0.18.13"
},
"config": {
"discard-changes": true,
Expand Down
Loading

0 comments on commit 1111376

Please sign in to comment.