This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from AgencyPMG/ALLI-7565-php82
[ALLI-7565] Drop PHP 7.4 Support
- Loading branch information
Showing
9 changed files
with
91 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Setup PHP | ||
|
||
description: Set up PHP & Composer | ||
|
||
inputs: | ||
php-version: | ||
required: false | ||
type: string | ||
description: the php version to use, defaults to 8.2 | ||
default: '8.2' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ inputs.php-version }}" | ||
tools: composer | ||
coverage: xdebug | ||
ini-values: zend.assertions=1,assert.exception=1,xdebug.mode=coverage | ||
|
||
- name: composer cache | ||
id: composercache | ||
shell: bash | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: cache php dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ inputs.php-version }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer-${{ inputs.php-version }}- | ||
|
||
- name: install php dependencies | ||
shell: bash | ||
run: composer install --no-interaction --no-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
test: | ||
name: test | ||
runs-on: "ubuntu-20.04" | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- php-version: 8.0 | ||
- php-version: 8.1 | ||
- php-version: 8.2 | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: PHP | ||
uses: ./.github/actions/setup-php | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: tests | ||
run: ./vendor/bin/phpunit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,21 @@ | |
{ "name": "Christopher Davis", "email": "[email protected]" } | ||
], | ||
"require": { | ||
"php": "^7.4 || ^8.0" | ||
"php": "^8.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.5", | ||
"mikey179/vfsstream": "^1.6" | ||
"mikey179/vfsstream": "^1.6", | ||
"symfony/phpunit-bridge": "^5.4" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"PMG\\CsvSugar\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"PMG\\CsvSugar\\": "test/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.