Skip to content

Commit

Permalink
Test code with PHP 8 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspoerschke committed Oct 4, 2020
1 parent 8dbf4d3 commit c945a99
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci_php8.yml
@@ -0,0 +1,35 @@
name: Continuous Integration (PHP 8)

on:
pull_request:
push:
branches:
- "2.x"

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.0"

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: 'echo "::set-output name=directory::$(composer config cache-dir)"'

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-composer-cache"

- name: "Composer install"
run: "composer install --ignore-platform-reqs"

- name: "Run tests"
run: "php vendor/bin/phpunit"
1 change: 1 addition & 0 deletions .Prettierignore → .prettierignore
@@ -1,2 +1,3 @@
/composer.lock
/vendor
/node_modules
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
This version is complete rewrite.
Please check the [upgrade guide](UPGRADE.md) on how to upgrade from version `0.*` to `2.0.0`.

### Added

- Support for PHP 8.0

### Changed

- Separate domain and presentation logic
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -95,4 +95,4 @@ docs-frontend-build: docs-frontend-dependencies

.PHONY: clean
clean:
rm -rf vendor composer.lock .couscous website/node_modules website/template/static couscous.phar node_modules .phpunit.result.cache .php_cs.cache
rm -rf vendor composer.lock .couscous website/node_modules website/template/static couscous.phar node_modules .phpunit.result.cache .php_cs.cache report
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=7.4",
"php": ">=7.4 || ~8.0.0",
"ext-mbstring": "*"
},
"conflict": {
Expand Down

0 comments on commit c945a99

Please sign in to comment.