Skip to content

Commit 638ec2d

Browse files
TemirkhanNmax107
andauthored
added php 8.0 support (#3)
* support-php80 added php 8.0 support * actions * fix github-actions * coveralls * coveralls * revert coveralls * max107 attempt to run ci with multiple php versions * support-php80 added php version print in CI * support-php80 fixed php version matrix in CI Co-authored-by: Maxim <[email protected]> Co-authored-by: maksim.falaleev <[email protected]>
1 parent 329b8b2 commit 638ec2d

File tree

3 files changed

+47
-17
lines changed

3 files changed

+47
-17
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
codestyle:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Validate composer.json and composer.lock
16+
run: composer validate --strict
17+
18+
- name: Install dependencies
19+
run: composer install --prefer-dist --no-progress
20+
21+
- name: Code style check
22+
run: vendor/bin/phpcs
23+
test:
24+
strategy:
25+
matrix:
26+
php-version:
27+
- "7.3"
28+
- "7.4"
29+
- "8.0"
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
34+
- name: "Install required PHP version"
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: "${{ matrix.php-version }}"
38+
39+
- name: Print php version(tobesure)
40+
run: php -v
41+
42+
- name: Install dependencies
43+
run: composer install --prefer-dist --no-progress
44+
45+
- name: Run test suite
46+
run: vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"require": {
23-
"php": "^7.3",
23+
"php": "^7.3|~8.0.0",
2424
"symfony/dependency-injection": "^4.1|^5.0",
2525
"symfony/http-kernel": "^4.1|^5.1",
2626
"ext-json": "*",

0 commit comments

Comments
 (0)