From 95221bcb25a6f4d748212dd533388220dda079d3 Mon Sep 17 00:00:00 2001 From: Tommey Date: Tue, 17 Oct 2023 14:55:54 +0200 Subject: [PATCH] Added PHP 8 support for v1 Added local-ci Makefile target for easy testing against all supported PHP versions. --- .github/workflows/ci.yml | 2 +- CHANGELOG-1.0.md | 4 ++++ Makefile | 12 ++++++++++++ README.md | 2 +- composer.json | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19c652b..632cdab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 10 matrix: - php: [ '7.2', '7.3', '7.4' ] + php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] steps: - name: Set up PHP diff --git a/CHANGELOG-1.0.md b/CHANGELOG-1.0.md index 0a8c881..c0bb74d 100644 --- a/CHANGELOG-1.0.md +++ b/CHANGELOG-1.0.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.1.0] - 2023-10-17 +### Added +- Added PHP 8 support. + ## [1.0.1] - 2021-05-07 ### Changed - Changed RequestBody to Stream in convertRequest to avoid unnecessary input stream copy. diff --git a/Makefile b/Makefile index 35752da..86ea625 100644 --- a/Makefile +++ b/Makefile @@ -28,3 +28,15 @@ static-cs-fix: static-cs-check: $(MAKE) static-cs-fix CS_PARAMS="--dry-run" + +DOCKER_RUN=docker run --rm -u $(shell id -u):$(shell id -g) -v $(shell pwd):/app -w /app + +local-ci: + $(DOCKER_RUN) -v ~/.composer:/tmp -v ~/.ssh:/root/.ssh composer:2 install + $(DOCKER_RUN) php:7.2-cli vendor/bin/codecept build + $(DOCKER_RUN) php:7.2-cli vendor/bin/codecept run + $(DOCKER_RUN) php:7.3-cli vendor/bin/codecept run + $(DOCKER_RUN) php:7.4-cli vendor/bin/codecept run + $(DOCKER_RUN) php:8.0-cli vendor/bin/codecept run + $(DOCKER_RUN) php:8.1-cli vendor/bin/codecept run + $(DOCKER_RUN) php:8.2-cli vendor/bin/codecept run diff --git a/README.md b/README.md index 9bfab89..981ba3a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Inspiration comes from [herloct/codeception-slim-module](https://github.com/herl ## Install ### Minimal requirements -- php: `^7.2` +- php: `^7.2 || ^8.0` - slim/slim: `^3.1` - codeception/codeception: `^4.0` diff --git a/composer.json b/composer.json index 3de96ca..732d531 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "type": "library", "license": "MIT", "require": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "codeception/codeception": "^4.0", "codeception/lib-innerbrowser": "^1.0", "slim/slim": "^3.1"