Skip to content

Commit

Permalink
Merge pull request #10 from arif98741/dev
Browse files Browse the repository at this point in the history
Merge Dev to Master
  • Loading branch information
arif98741 authored Jan 29, 2025
2 parents bc6e0e9 + fce7670 commit ba2da78
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/php-version-installation-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Check Composer Compatibility for PHP 8.0, 8.1, 8.2, 8.3, 8.4

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
check-php-versions:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [8.0, 8.1, 8.2, 8.3, 8.4] # Added PHP 8.0 to the matrix

steps:
# Step 1: Check out the code
- name: Checkout code
uses: actions/checkout@v2

# Step 2: Set up PHP version
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, bcmath, curl, json # Add any required PHP extensions

# Step 3: Install Composer
- name: Install Composer
run: curl -sS https://getcomposer.org/installer | php

# Step 4: Install dependencies using Composer
- name: Install dependencies with Composer
run: php composer.phar install --no-progress --prefer-dist

# Step 5: Run tests or any checks (optional)
- name: Run PHPUnit tests (if applicable)
run: vendor/bin/phpunit --configuration phpunit.xml.dist || true # Adjust as needed
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"email": "arif98741@gmail.com"
},
"require": {
"php": "^7.3|^8.0|^8.1|^8.2",
"php": "^7.4|^8.0",
"ext-curl": "*",
"ext-json": "*",
"nesbot/carbon": "^2.59",
Expand Down

0 comments on commit ba2da78

Please sign in to comment.