Skip to content

Commit

Permalink
Preparing for PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Sep 28, 2021
1 parent 157dcc6 commit c1fff8b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,26 @@ on:
env:
extensions: "json"
cache-version: "1"
composer-version: "v1"
composer-version: "v2"
composer-install: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable"
coverage: "none"

jobs:
qa:
name: "Quality assurance"
runs-on: "${{ matrix.operating-system }}"
continue-on-error: "${{ matrix.experimental }}"

strategy:
fail-fast: false
matrix:
php-version: ["7.4"]
operating-system: ["ubuntu-latest"]
fail-fast: false
experimental: [false]
include:
- php-version: "8.0"
operating-system: "ubuntu-latest"
experimental: true

steps:
- name: "Checkout"
Expand Down Expand Up @@ -81,12 +87,18 @@ jobs:
static-analysis:
name: "Static analysis"
runs-on: "${{ matrix.operating-system }}"
continue-on-error: "${{ matrix.experimental }}"

strategy:
fail-fast: false
matrix:
php-version: ["7.4"]
operating-system: ["ubuntu-latest"]
fail-fast: false
experimental: [false]
include:
- php-version: "8.0"
operating-system: "ubuntu-latest"
experimental: true

steps:
- name: "Checkout"
Expand Down Expand Up @@ -138,12 +150,18 @@ jobs:
tests:
name: "Tests"
runs-on: "${{ matrix.operating-system }}"
continue-on-error: "${{ matrix.experimental }}"

strategy:
fail-fast: false
matrix:
php-version: ["7.4"]
operating-system: ["ubuntu-latest"]
fail-fast: false
experimental: [false]
include:
- php-version: "8.0"
operating-system: "ubuntu-latest"
experimental: true

steps:
- name: "Checkout"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# FastyBird date & time factory library

[![Build Status](https://badgen.net/github/checks/FastyBird/datetime-factory/master?cache=300&style=flast-square)](https://github.com/FastyBird/datetime-factory/actions)
[![Licence](https://badgen.net/github/license/FastyBird/datetime-factory?cache=300&style=flast-square)](https://github.com/FastyBird/datetime-factory/blob/master/LICENSE.md)
[![Code coverage](https://badgen.net/coveralls/c/github/FastyBird/datetime-factory?cache=300&style=flast-square)](https://coveralls.io/r/FastyBird/datetime-factory)

![PHP](https://badgen.net/packagist/php/FastyBird/datetime-factory?cache=300&style=flast-square)
[![Licence](https://badgen.net/packagist/license/FastyBird/datetime-factory?cache=300&style=flast-square)](https://github.com/FastyBird/datetime-factory/blob/master/LICENSE.md)
[![Downloads total](https://badgen.net/packagist/dt/FastyBird/datetime-factory?cache=300&style=flast-square)](https://packagist.org/packages/FastyBird/datetime-factory)
[![Latest stable](https://badgen.net/packagist/v/FastyBird/datetime-factory/latest?cache=300&style=flast-square)](https://packagist.org/packages/FastyBird/datetime-factory)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"minimum-stability" : "stable",

"require" : {
"php" : ">=7.4.0",
"php": ">=7.4.0|>=8.0.0",
"nette/bootstrap" : "^3.1",
"nette/di" : "^3.0",
"nette/utils" : "^3.2"
Expand Down

0 comments on commit c1fff8b

Please sign in to comment.