Skip to content

Commit 8485c5e

Browse files
authored
New major (v3) version (#7)
1 parent 9be8220 commit 8485c5e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+3332
-1092
lines changed

.codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ indent_style = space
88
indent_size = 4
99
trim_trailing_whitespace = true
1010

11-
[*.{md,json}]
11+
[*.{md, json}]
1212
trim_trailing_whitespace = false
1313

14-
[*.{yml,yaml,sh,conf,neon*}]
14+
[*.{yml, yaml, sh, conf, neon*}]
1515
indent_size = 2
1616

1717
[Makefile]

.gitattributes

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
* text=auto
22

3-
/.github export-ignore
4-
/tests export-ignore
5-
/[Dd]ocker* export-ignore
6-
/CODE_OF_CONDUCT.md export-ignore
7-
/CONTRIBUTING.md export-ignore
8-
/.* export-ignore
9-
/phpunit.xml* export-ignore
10-
/phpstan.* export-ignore
11-
/Makefile export-ignore
3+
/.github export-ignore
4+
/tests export-ignore
5+
/[Dd]ocker* export-ignore
6+
/.* export-ignore
7+
/phpunit.xml* export-ignore
8+
/phpstan.* export-ignore
9+
/Makefile export-ignore

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ about: Create a report to help us improve
1616

1717
> Tell us what happens instead.
1818
19-
### Steps to reproduce the behavior:
19+
### Steps to reproduce the behavior
2020

2121
> Put some code example:
2222
>

.github/PULL_REQUEST_TEMPLATE.md

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

.github/stale.yml

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

.github/workflows/execute-tests.yml

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,39 @@ jobs: # Docs: <https://help.github.com/en/articles/workflow-syntax-for-github-ac
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 10
1616
strategy:
17+
fail-fast: false
1718
matrix:
1819
setup: ['basic', 'lowest']
19-
php: ['7.1', '7.2', '7.3']
20+
php: ['7.1', '7.2', '7.3', '7.4']
21+
include:
22+
- php: '7.1'
23+
setup: 'basic'
24+
coverage: 'true'
25+
- php: '7.4'
26+
setup: 'basic'
27+
coverage: 'true'
2028
steps:
2129
- name: Check out code
22-
uses: actions/checkout@v1
30+
uses: actions/checkout@v2
2331
with:
2432
fetch-depth: 1
2533

2634
- name: Setup PHP, with composer and extensions
2735
uses: shivammathur/setup-php@master # Action page: <https://github.com/shivammathur/setup-php>
2836
with:
2937
php-version: ${{ matrix.php }}
38+
extensions: mbstring # definition is required for php 7.4
39+
40+
- name: Get Composer Cache Directory # Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer>
41+
id: composer-cache
42+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
43+
44+
- name: Cache dependencies # Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer>
45+
uses: actions/cache@v1
46+
with:
47+
path: ${{ steps.composer-cache.outputs.dir }}
48+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
49+
restore-keys: ${{ runner.os }}-composer-
3050

3151
- name: Install Composer 'hirak/prestissimo' package
3252
run: composer global require hirak/prestissimo --update-no-dev
@@ -43,4 +63,32 @@ jobs: # Docs: <https://help.github.com/en/articles/workflow-syntax-for-github-ac
4363
run: composer info | grep -e laravel/laravel -e phpunit/phpunit -e phpstan/phpstan
4464

4565
- name: Execute tests
66+
if: matrix.coverage != 'true'
4667
run: composer test
68+
69+
- name: Execute tests with code coverage
70+
if: matrix.coverage == 'true'
71+
run: composer test-cover
72+
73+
- uses: codecov/codecov-action@v1 # Docs: <https://github.com/codecov/codecov-action>
74+
if: matrix.coverage == 'true'
75+
with:
76+
token: ${{ secrets.CODECOV_TOKEN }}
77+
file: ./coverage/clover.xml
78+
fail_ci_if_error: false
79+
80+
lint-changelog:
81+
name: Lint changelog file
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Check out code
85+
uses: actions/checkout@v2
86+
with:
87+
fetch-depth: 1
88+
89+
- name: Lint changelog file
90+
uses: docker://avtodev/markdown-lint:v1 # Action page: <https://github.com/avto-dev/markdown-lint>
91+
with:
92+
rules: '/lint/rules/changelog.js'
93+
config: '/lint/config/changelog.yml'
94+
args: './CHANGELOG.md'

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ composer.lock
1111
# Temp dirs & trash
1212
/temp
1313
/tmp
14-
/install
15-
/build
1614
/coverage
1715
.DS_Store
18-
.php_cs.cache
19-
clover-file
16+
*.cache
17+
/VERSION

.styleci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ enabled:
55
- align_double_arrow
66
- dir_constant
77
- linebreak_after_opening_tag
8-
- mb_str_functions
98
- no_short_echo_tag
109
- non_printable_character
1110
- ordered_class_elements
@@ -17,8 +16,18 @@ enabled:
1716
- phpdoc_return_self_reference
1817
- align_equals
1918
- concat_with_spaces
19+
- length_ordered_imports
20+
- const_visibility_required
21+
- native_constant_invocation
22+
- php_unit_construct
23+
- php_unit_set_up_tear_down_visibility
24+
- php_unit_strict
25+
- php_unit_test_class_requires_covers
26+
- php_unit_expectation
2027

2128
disabled:
2229
- unalign_equals
2330
- concat_without_spaces
2431
- declare_equal_normalize
32+
- alpha_ordered_imports
33+
- single_class_element_per_statement

.travis.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: php
2+
os: linux
23

34
cache:
45
directories:
@@ -10,8 +11,6 @@ env:
1011
- coverage=false
1112
- laravel=default
1213

13-
sudo: false
14-
1514
branches:
1615
except:
1716
- /analysis-.*/
@@ -33,16 +32,12 @@ script:
3332
after_success:
3433
- if [[ $coverage = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
3534

36-
matrix:
35+
jobs:
3736
include:
3837
- php: 7.1.3
3938
env: setup=lowest
4039
- php: 7.1.3
41-
env: laravel=5.5
42-
- php: 7.1.3
43-
env: laravel=5.6
44-
- php: 7.1.3
45-
env: coverage=true
40+
env: coverage=true laravel=5.8
4641

4742
- php: 7.2
4843
env: setup=lowest
@@ -53,8 +48,6 @@ matrix:
5348

5449
- php: 7.3
5550
env: setup=lowest
56-
- php: 7.3
57-
env: laravel=5.5
5851
- php: 7.3
5952
env: laravel=5.6
6053
- php: 7.3
@@ -64,7 +57,7 @@ matrix:
6457
- php: 7.3
6558
env: coverage=true laravel=6.*
6659

67-
- php: nightly
68-
69-
allow_failures:
70-
- php: nightly
60+
- php: 7.4
61+
env: setup=lowest
62+
- php: 7.4
63+
env: coverage=true laravel=6.*

0 commit comments

Comments
 (0)