Skip to content

Commit

Permalink
Require PHP >= 8.1 and bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Jan 28, 2023
1 parent 836784b commit 7acc8b4
Show file tree
Hide file tree
Showing 4 changed files with 612 additions and 668 deletions.
76 changes: 35 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ jobs:
name: Unit tests and QA
strategy:
matrix:
operating-system: ['ubuntu-20.04']
php-versions: ['7.4', '8.0', '8.1']
operating-system: ['ubuntu-22.04']
php-versions: ['8.1', '8.2']
mongodb-versions: ['5.0.2']

runs-on: ${{ matrix.operating-system }}
Expand All @@ -28,16 +28,15 @@ jobs:
tools: php-cs-fixer
extensions: imagick

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -60,8 +59,8 @@ jobs:
name: Integration tests (MongoDB / GridFS)
strategy:
matrix:
operating-system: ['ubuntu-20.04']
php-versions: ['7.4', '8.0', '8.1']
operating-system: ['ubuntu-22.04']
php-versions: ['8.1', '8.2']
mongodb-versions: ['5.0.2']

runs-on: ${{ matrix.operating-system }}
Expand All @@ -82,16 +81,15 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: imagick

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -109,7 +107,7 @@ jobs:
- name: Run integration tests using Behat
run: vendor/bin/behat --strict --suite=mongodb-gridfs

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
with:
name: httpd-logs-mongodb-gridfs
Expand All @@ -119,8 +117,8 @@ jobs:
name: Integration tests (MongoDB / Filesystem)
strategy:
matrix:
operating-system: ['ubuntu-20.04']
php-versions: ['7.4', '8.0', '8.1']
operating-system: ['ubuntu-22.04']
php-versions: ['8.1', '8.2']
mongodb-versions: ['5.0.2']

runs-on: ${{ matrix.operating-system }}
Expand All @@ -141,16 +139,15 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: imagick

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -168,7 +165,7 @@ jobs:
- name: Run integration tests using Behat
run: vendor/bin/behat --strict --suite=mongodb-filesystem

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
with:
name: httpd-logs-mongodb-filesystem
Expand All @@ -178,8 +175,8 @@ jobs:
name: Integration tests (SQLite / Filesystem)
strategy:
matrix:
operating-system: ['ubuntu-20.04']
php-versions: ['7.4', '8.0', '8.1']
operating-system: ['ubuntu-22.04']
php-versions: ['8.1', '8.2']
mongodb-versions: ['5.0.2']

runs-on: ${{ matrix.operating-system }}
Expand All @@ -200,16 +197,15 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: imagick

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -230,7 +226,7 @@ jobs:
- name: Run integration tests using Behat
run: vendor/bin/behat --strict --suite=sqlite-filesystem

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
with:
name: httpd-logs-sqlite-filesystem
Expand All @@ -241,8 +237,8 @@ jobs:

strategy:
matrix:
operating-system: ['ubuntu-20.04']
php-versions: ['7.4', '8.0', '8.1']
operating-system: ['ubuntu-22.04']
php-versions: ['8.1', '8.2']
mongodb-versions: ['5.0.2']
mysql-versions: ['8.0.20']

Expand Down Expand Up @@ -275,16 +271,15 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: imagick

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -305,7 +300,7 @@ jobs:
- name: Run integration tests using Behat
run: vendor/bin/behat --strict --suite=mysql-filesystem

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
with:
name: httpd-logs-mysql-filesystem
Expand All @@ -316,8 +311,8 @@ jobs:

strategy:
matrix:
operating-system: ['ubuntu-20.04']
php-versions: ['7.4', '8.0', '8.1']
operating-system: ['ubuntu-22.04']
php-versions: ['8.1', '8.2']
mongodb-versions: ['5.0.2']

runs-on: ${{ matrix.operating-system }}
Expand Down Expand Up @@ -346,16 +341,15 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: imagick

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -376,7 +370,7 @@ jobs:
- name: Run integration tests using Behat
run: vendor/bin/behat --strict --suite=postgresql-filesystem

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
with:
name: httpd-logs-postgresql-filesystem
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"docs": "https://docs.imbo.io"
},
"require": {
"php": ">=7.4",
"php": ">=8.1",
"ext-imagick": "^3.4",
"guzzlehttp/psr7": "^2.0",
"ramsey/uuid": "^4.2",
Expand Down

0 comments on commit 7acc8b4

Please sign in to comment.