-
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 #16 from meritoo/chore/bump-php-to-8.2
Bump minimum PHP version: `8.0` -> `8.2`
- Loading branch information
Showing
3 changed files
with
138 additions
and
144 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 |
---|---|---|
@@ -1,143 +1,143 @@ | ||
name: Verify stability | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
contents: read | ||
|
||
jobs: | ||
Validate: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1', '8.2' ] | ||
env: | ||
extensions: dom, fileinfo, intl, json, pcre, simplexml | ||
key: cache-v1 # can be any string, change to clear the extension cache. | ||
steps: | ||
- name: Hello | ||
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
- name: Validate Composer (composer.json and composer.lock) | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
command: validate --strict --no-check-publish | ||
- name: Cache Composer dependencies | ||
id: composer-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install Composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
dev: no | ||
PHPStan: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1', '8.2' ] | ||
env: | ||
extensions: dom, fileinfo, intl, json, pcre, simplexml | ||
key: cache-v1 # can be any string, change to clear the extension cache. | ||
needs: [ Validate ] | ||
if: needs.Validate.result == 'success' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
- name: Install Composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
- name: Analyse code with PHPStan | ||
run: vendor/bin/phpstan analyse --memory-limit 256M | ||
PHPUnit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1', '8.2' ] | ||
env: | ||
extensions: dom, fileinfo, intl, json, pcre, simplexml | ||
key: cache-v1 # can be any string, change to clear the extension cache. | ||
needs: [ PHPStan ] | ||
if: needs.PHPStan.result == 'success' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
- name: Install locales | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y --no-install-recommends --fix-missing \ | ||
locales | ||
- name: Generate locales | ||
run: | | ||
sudo sed -i "s/^# de_DE/de_DE/g; \ | ||
s/^# es_ES/es_ES/g; \ | ||
s/^# en_GB/en_GB/g; \ | ||
s/^# en_US/en_US/g; \ | ||
s/^# fr_FR/fr_FR/g; \ | ||
s/^# it_IT/it_IT/g; \ | ||
s/^# pl_PL/pl_PL/g; \ | ||
s/^# ru_RU/ru_RU/g;" /etc/locale.gen \ | ||
&& sudo locale-gen | ||
- name: Install Composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
- name: Run PHPUnit tests | ||
run: vendor/bin/phpunit --no-coverage | ||
- name: Bye 👋 | ||
run: echo "🍏 This job's status is ${{ job.status }}." | ||
Validate: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1', '8.2' ] | ||
env: | ||
extensions: dom, fileinfo, intl, json, pcre, simplexml | ||
key: cache-v1 # can be any string, change to clear the extension cache. | ||
steps: | ||
- name: Hello | ||
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
- name: Validate Composer (composer.json and composer.lock) | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
command: validate --strict --no-check-publish | ||
- name: Cache Composer dependencies | ||
id: composer-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install Composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
dev: no | ||
PHPStan: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1', '8.2' ] | ||
env: | ||
extensions: dom, fileinfo, intl, json, pcre, simplexml | ||
key: cache-v1 # can be any string, change to clear the extension cache. | ||
needs: [ Validate ] | ||
if: needs.Validate.result == 'success' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
- name: Install Composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
- name: Analyse code with PHPStan | ||
run: vendor/bin/phpstan analyse --memory-limit 256M | ||
PHPUnit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1', '8.2' ] | ||
env: | ||
extensions: dom, fileinfo, intl, json, pcre, simplexml | ||
key: cache-v1 # can be any string, change to clear the extension cache. | ||
needs: [ PHPStan ] | ||
if: needs.PHPStan.result == 'success' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ${{ env.extensions }} | ||
- name: Install locales | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y --no-install-recommends --fix-missing \ | ||
locales | ||
- name: Generate locales | ||
run: | | ||
sudo sed -i "s/^# de_DE/de_DE/g; \ | ||
s/^# es_ES/es_ES/g; \ | ||
s/^# en_GB/en_GB/g; \ | ||
s/^# en_US/en_US/g; \ | ||
s/^# fr_FR/fr_FR/g; \ | ||
s/^# it_IT/it_IT/g; \ | ||
s/^# pl_PL/pl_PL/g; \ | ||
s/^# ru_RU/ru_RU/g;" /etc/locale.gen \ | ||
&& sudo locale-gen | ||
- name: Install Composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php-versions }} | ||
php_extensions: intl | ||
- name: Run PHPUnit tests | ||
run: vendor/bin/phpunit --no-coverage | ||
- name: Bye 👋 | ||
run: echo "🍏 This job's status is ${{ job.status }}." |
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