-
Notifications
You must be signed in to change notification settings - Fork 1
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 #9 from AgencyPMG/ALLI-7568-php82
[ALLI-7568] Drop PHP 7.4 Support
- Loading branch information
Showing
7 changed files
with
81 additions
and
18 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,28 @@ | ||
name: ci | ||
|
||
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: make test |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.PHONY: test | ||
|
||
test: | ||
php vendor/bin/phpunit | ||
php vendor/bin/phpunit -v |
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