Skip to content

Commit a9525f1

Browse files
authored
Merge pull request #164 from php-school/php-74
php-7.4
2 parents eafddcb + 9362a59 commit a9525f1

36 files changed

+339
-1657
lines changed

.github/workflows/php-workshop.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: PhpWorkshop
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php: [7.2, 7.3, 7.4]
15+
16+
name: PHP ${{ matrix.php }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
tools: composer:v2
26+
27+
- name: Install Dependencies
28+
run: composer update --prefer-dist
29+
30+
- name: Run phpunit tests
31+
run: |
32+
mkdir -p build/logs
33+
vendor/bin/simple-phpunit --coverage-clover ./build/logs/clover.xml
34+
35+
- name: Run phpcs
36+
run: composer cs
37+
38+
# - name: Run phpstan
39+
# run: composer static
40+
41+
- name: Coverage upload
42+
if: matrix.php == '7.4'
43+
run: bash <(curl -s https://codecov.io/bash)
44+

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/vendor
22
/.idea
3-
program.php
3+
program.php
4+
.phpunit.result.cache
5+
/build

.travis.yml

-25
This file was deleted.

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require" : {
18-
"php" : ">=7.1",
18+
"php" : ">=7.2",
1919
"ext-pdo_sqlite": "*",
2020
"php-di/php-di": "^6.0",
2121
"container-interop/container-interop": "^1.0",
@@ -33,8 +33,8 @@
3333
},
3434
"require-dev": {
3535
"composer/composer": "^1.2",
36-
"phpunit/phpunit": "^7",
37-
"squizlabs/php_codesniffer": "^3.4"
36+
"squizlabs/php_codesniffer": "^3.4",
37+
"symfony/phpunit-bridge": "^5.1"
3838
},
3939
"autoload" : {
4040
"psr-4" : {

0 commit comments

Comments
 (0)