File tree 6 files changed +55
-61
lines changed
6 files changed +55
-61
lines changed Original file line number Diff line number Diff line change 10
10
permissions :
11
11
contents : read
12
12
13
+ # Cancel in progress workflows on pull_requests.
14
+ # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
15
+ concurrency :
16
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17
+ cancel-in-progress : true
18
+
13
19
jobs :
14
20
phpunit :
15
21
runs-on : ubuntu-latest
16
- timeout-minutes : 15
17
22
env :
18
23
COMPOSER_NO_INTERACTION : 1
19
24
29
34
30
35
steps :
31
36
- name : Checkout code
32
- uses : actions/checkout@v3
37
+ uses : actions/checkout@v4
33
38
34
39
- name : Setup PHP
35
40
uses : shivammathur/setup-php@v2
@@ -55,14 +60,13 @@ jobs:
55
60
composer install --no-interaction --prefer-dist --no-progress
56
61
57
62
- name : Run phpunit
58
- run : composer test:ci
63
+ run : vendor/bin/phpunit --coverage-clover=coverage.xml
59
64
60
65
- name : Upload code coverage
61
66
uses : codecov/codecov-action@v3
62
67
63
68
phpunit-legacy :
64
69
runs-on : ubuntu-latest
65
- timeout-minutes : 15
66
70
env :
67
71
COMPOSER_NO_INTERACTION : 1
68
72
@@ -118,7 +122,7 @@ jobs:
118
122
119
123
steps :
120
124
- name : Checkout code
121
- uses : actions/checkout@v3
125
+ uses : actions/checkout@v4
122
126
123
127
- name : Setup PHP
124
128
uses : shivammathur/setup-php@v2
@@ -145,7 +149,7 @@ jobs:
145
149
composer install --no-interaction --prefer-dist --no-progress
146
150
147
151
- name : Run phpunit
148
- run : composer test:ci
152
+ run : vendor/bin/phpunit --coverage-clover=coverage.xml
149
153
150
154
- name : Upload code coverage
151
155
uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 1
- name : CS
1
+ name : Code style and static analysis
2
2
3
3
on :
4
4
pull_request :
5
5
push :
6
6
branches :
7
7
- master
8
- - release/**
8
+ - develop
9
9
10
10
permissions :
11
11
contents : read
@@ -16,16 +16,33 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Checkout
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
21
21
- name : Setup PHP
22
22
uses : shivammathur/setup-php@v2
23
23
with :
24
24
php-version : ' 8.2'
25
- coverage : none
26
25
27
26
- name : Install dependencies
28
27
run : composer update --no-progress --no-interaction --prefer-dist
29
28
30
29
- name : Run script
31
- run : composer phpcs:ci
30
+ run : vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
31
+
32
+ phpstan :
33
+ name : PHPStan
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - name : Checkout
37
+ uses : actions/checkout@v4
38
+
39
+ - name : Setup PHP
40
+ uses : shivammathur/setup-php@v2
41
+ with :
42
+ php-version : ' 8.2'
43
+
44
+ - name : Install dependencies
45
+ run : composer update --no-progress --no-interaction --prefer-dist
46
+
47
+ - name : Run script
48
+ run : vendor/bin/phpstan analyse
Original file line number Diff line number Diff line change 9
9
force :
10
10
description : Force a release even when there are release-blockers (optional)
11
11
required : false
12
+ merge_target :
13
+ description : Target branch to merge into. Uses the default branch as a fallback (optional)
14
+ required : false
15
+ default : master
12
16
13
17
permissions :
14
18
contents : read
30
34
with :
31
35
version : ${{ github.event.inputs.version }}
32
36
force : ${{ github.event.inputs.force }}
37
+ merge_target : ${{ github.event.inputs.merge_target }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,6 +2,5 @@ comment: false
2
2
3
3
coverage :
4
4
status :
5
- project :
6
- default :
7
- threshold : 0.1% # allow for 0.1% reduction of coverage without failing
5
+ project : off
6
+ patch : off
Original file line number Diff line number Diff line change 10
10
" error-monitoring" ,
11
11
" error-handler" ,
12
12
" crash-reporting" ,
13
- " crash-reports"
13
+ " crash-reports" ,
14
+ " profiling" ,
15
+ " tracing"
14
16
],
15
17
"homepage" : " https://sentry.io" ,
16
18
"license" : " MIT" ,
47
49
}
48
50
},
49
51
"scripts" : {
50
- "test" : " vendor/bin/phpunit" ,
51
- "tests" : " @test" ,
52
- "test:ci" : " vendor/bin/phpunit --coverage-clover=coverage.xml" ,
53
- "phpcs" : " vendor/bin/php-cs-fixer fix" ,
54
- "phpcs:ci" : " vendor/bin/php-cs-fixer fix --dry-run --diff" ,
55
- "phpstan" : " vendor/bin/phpstan analyse" ,
56
- "phpstan:ci" : " vendor/bin/phpstan analyse --error-format github"
52
+ "check" : [
53
+ " @cs-check" ,
54
+ " @phpstan" ,
55
+ " @tests"
56
+ ],
57
+ "tests" : " vendor/bin/phpunit --verbose" ,
58
+ "cs-check" : " vendor/bin/php-cs-fixer fix --verbose --diff --dry-run" ,
59
+ "cs-fix" : " vendor/bin/php-cs-fixer fix --verbose --diff" ,
60
+ "phpstan" : " vendor/bin/phpstan analyse"
57
61
},
58
62
"extra" : {
59
- "branch-alias" : {
60
- "dev-master" : " 3.x-dev" ,
61
- "dev-2.x" : " 2.x-dev" ,
62
- "dev-1.x" : " 1.x-dev" ,
63
- "dev-0.x" : " 0.x-dev"
64
- },
65
63
"laravel" : {
66
64
"providers" : [
67
65
" Sentry\\ Laravel\\ ServiceProvider" ,
72
70
}
73
71
}
74
72
},
75
- "prefer-stable" : true ,
76
- "minimum-stability" : " dev"
73
+ "config" : {
74
+ "sort-packages" : true
75
+ },
76
+ "prefer-stable" : true
77
77
}
You can’t perform that action at this time.
0 commit comments