Skip to content

Commit

Permalink
Upgrade to PHP 8.1 (#2)
Browse files Browse the repository at this point in the history
* Updated PHP requirement to >=8.0 and removed mindplay/simple-cache dev-dependency

* Updated to PHPUnit ^9.5 and migrated configuration

* Removed Scrutinizer integration

* Removed composer.lock to avoid locking packages that require PHP >=8.1

* Replaced Travis with Github Actions
  • Loading branch information
vortrixs committed Aug 24, 2022
1 parent 0fc6cdc commit ba6749e
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 1,668 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Codeception tests

on: [push]

jobs:
build:
name: ${{matrix.operating-system}}, PHP ${{ matrix.php }}

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
operating-system: [ ubuntu-latest, ubuntu-20.04 ]
php: [ '8.0', '8.1' ]

services:
postgres:
image: postgres
env:
POSTGRES_DB: kodus_db_cache_test
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432

mysql:
image: mysql
env:
MYSQL_DATABASE: kodus_db_cache_test
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306

steps:
- uses: actions/checkout@master

- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer install

- name: Run tests
run: php vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/vendor
phpunit.xml
clover.xml
composer.lock
5 changes: 0 additions & 5 deletions .scrutinizer.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and complete in a single round-trip.

No dependencies beyond the PSR-16 interface.

[![PHP Version](https://img.shields.io/badge/php-7.2%2B-blue.svg)](https://packagist.org/packages/kodus/db-cache)
[![PHP Version](https://img.shields.io/badge/php-8.0%2B-blue.svg)](https://packagist.org/packages/kodus/db-cache)
[![Build Status](https://travis-ci.org/kodus/db-cache.svg?branch=master)](https://travis-ci.org/kodus/db-cache)
[![Code Coverage](https://scrutinizer-ci.com/g/kodus/db-cache/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/kodus/db-cache/?branch=master)
[![Code Quality](https://scrutinizer-ci.com/g/kodus/db-cache/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kodus/db-cache/?branch=master)
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
"psr/simple-cache-implementation": "1.0"
},
"require": {
"php": ">= 7.2",
"php": ">= 8.0",
"psr/simple-cache": "^1",
"ext-pdo": "*"
},
"require-dev": {
"phpunit/phpunit": "^8.1.5",
"mindplay/simple-cache": "^1.0"
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit ba6749e

Please sign in to comment.