Skip to content

Commit

Permalink
Bump requirements to PHP 7.4 (#619)
Browse files Browse the repository at this point in the history
* Require PHP 7.4

* CI: Switch to setup-php

* Update README.md
  • Loading branch information
retlehs authored Dec 6, 2021
1 parent 1d75c87 commit d88322a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,31 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ['7.3', '7.4', '8.0']
php_version: ['7.4', '8.0', '8.1']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php_version: ${{ matrix.php_version }}

- name: Cache Composer dependencies
uses: actions/cache@v2
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Check Composer lock file is up to date
uses: php-actions/composer@v5
with:
command: validate
args: '--no-check-all'

run: composer validate --no-check-all

- name: Install Composer dependencies
uses: php-actions/composer@v5
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run tests
uses: php-actions/composer@v5
with:
command: test
php_version: ${{ matrix.php_version }}
version: 2
run: composer test
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### HEAD
* Bump requirements to PHP 7.4 ([#619](https://github.com/roots/bedrock/pull/619))

### 1.17.1: 2021-11-16
* Bump roots/wordpress from 5.8.1 to 5.8.2 ([#615](https://github.com/roots/bedrock/pull/615))

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Much of the philosophy behind Bedrock is inspired by the [Twelve-Factor App](htt

## Requirements

- PHP >= 7.1
- PHP >= 7.4
- Composer - [Install](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)

## Installation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
],
"require": {
"php": ">=7.1",
"php": ">=7.4",
"composer/installers": "^1.12",
"vlucas/phpdotenv": "^5.3",
"oscarotero/env": "^2.1",
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d88322a

Please sign in to comment.