From 19f37dd64a1db03895d662d7ffde814cb0a83f82 Mon Sep 17 00:00:00 2001 From: Ariful Islam Date: Wed, 29 Jan 2025 10:22:20 +0600 Subject: [PATCH 1/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 001874b..0494183 100644 --- a/composer.json +++ b/composer.json @@ -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", From eebeb0c3a98def0e6292f74d82bb0c56d0be9b3a Mon Sep 17 00:00:00 2001 From: Ariful Islam Date: Wed, 29 Jan 2025 10:23:09 +0600 Subject: [PATCH 2/3] Create php-version-installation-pipeline.yml --- .../php-version-installation-pipeline.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/php-version-installation-pipeline.yml diff --git a/.github/workflows/php-version-installation-pipeline.yml b/.github/workflows/php-version-installation-pipeline.yml new file mode 100644 index 0000000..0f2ab02 --- /dev/null +++ b/.github/workflows/php-version-installation-pipeline.yml @@ -0,0 +1,41 @@ +name: Check Composer Compatibility for PHP 8.0, 8.1, 8.2, 8.3, 8.4 + +on: + push: + branches: + - php_version + pull_request: + branches: + - php_version + +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 From ca84e9efecb9f40500b7f483eeacb99a4504f318 Mon Sep 17 00:00:00 2001 From: Ariful Islam Date: Wed, 29 Jan 2025 10:25:44 +0600 Subject: [PATCH 3/3] Update php-version-installation-pipeline.yml --- .github/workflows/php-version-installation-pipeline.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-version-installation-pipeline.yml b/.github/workflows/php-version-installation-pipeline.yml index 0f2ab02..a0f9828 100644 --- a/.github/workflows/php-version-installation-pipeline.yml +++ b/.github/workflows/php-version-installation-pipeline.yml @@ -3,11 +3,12 @@ name: Check Composer Compatibility for PHP 8.0, 8.1, 8.2, 8.3, 8.4 on: push: branches: - - php_version + - master + - dev pull_request: branches: - - php_version - + - master + - dev jobs: check-php-versions: runs-on: ubuntu-latest