Skip to content

Commit ba2da78

Browse files
authored
Merge pull request #10 from arif98741/dev
Merge Dev to Master
2 parents bc6e0e9 + fce7670 commit ba2da78

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Check Composer Compatibility for PHP 8.0, 8.1, 8.2, 8.3, 8.4
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
branches:
10+
- master
11+
- dev
12+
jobs:
13+
check-php-versions:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
php-version: [8.0, 8.1, 8.2, 8.3, 8.4] # Added PHP 8.0 to the matrix
19+
20+
steps:
21+
# Step 1: Check out the code
22+
- name: Checkout code
23+
uses: actions/checkout@v2
24+
25+
# Step 2: Set up PHP version
26+
- name: Set up PHP ${{ matrix.php-version }}
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
extensions: mbstring, intl, bcmath, curl, json # Add any required PHP extensions
31+
32+
# Step 3: Install Composer
33+
- name: Install Composer
34+
run: curl -sS https://getcomposer.org/installer | php
35+
36+
# Step 4: Install dependencies using Composer
37+
- name: Install dependencies with Composer
38+
run: php composer.phar install --no-progress --prefer-dist
39+
40+
# Step 5: Run tests or any checks (optional)
41+
- name: Run PHPUnit tests (if applicable)
42+
run: vendor/bin/phpunit --configuration phpunit.xml.dist || true # Adjust as needed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"email": "[email protected]"
2323
},
2424
"require": {
25-
"php": "^7.3|^8.0|^8.1|^8.2",
25+
"php": "^7.4|^8.0",
2626
"ext-curl": "*",
2727
"ext-json": "*",
2828
"nesbot/carbon": "^2.59",

0 commit comments

Comments
 (0)