Skip to content

Commit bbcfbc3

Browse files
committed
ci update
1 parent b0cfc6e commit bbcfbc3

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ jobs:
2424
- name: Install tools
2525
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
2626

27+
- name: Chesk code style
28+
run: tools/php-cs-fixer fix --dry-run --no-interaction
29+
2730
- name: Install dependencies
2831
run: composer update --no-interaction --prefer-lowest --with psr/http-message:^2.0 --with simple-as-fuck/php-validator:^0.7.0 --with illuminate/support:^12.0 --with psr/log:^3.0 --with symfony/http-foundation:^7.0 --with symfony/http-kernel:^7.0 --with symfony/psr-http-message-bridge:^7.0
2932

3033
- name: Run static analysis
3134
run: vendor/bin/phpstan analyse --memory-limit=-1
3235

3336
- name: Run tests
34-
run: tools/phpunit test/ --bootstrap vendor/autoload.php
37+
run: vendor/bin/phpunit test/
3538

3639
php83:
3740
name: "php 8.3"
@@ -47,20 +50,14 @@ jobs:
4750
- name: Checkout repository
4851
uses: actions/checkout@v4
4952

50-
- name: Install tools
51-
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
52-
5353
- name: Install dependencies
5454
run: composer update --no-interaction --prefer-lowest
5555

56-
- name: Chesk code style
57-
run: tools/php-cs-fixer fix --dry-run --no-interaction
58-
5956
- name: Run static analysis
6057
run: vendor/bin/phpstan analyse --memory-limit=-1
6158

6259
- name: Run tests
63-
run: tools/phpunit test/ --bootstrap vendor/autoload.php
60+
run: vendor/bin/phpunit test/
6461

6562
php83a:
6663
name: "php 8.3, laravel 10, PSR message 1"
@@ -76,17 +73,14 @@ jobs:
7673
- name: Checkout repository
7774
uses: actions/checkout@v4
7875

79-
- name: Install tools
80-
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
81-
8276
- name: Install dependencies
8377
run: composer update --no-interaction --prefer-lowest --with illuminate/support:^10.0 --with psr/http-message:^1.1
8478

8579
- name: Run static analysis
8680
run: vendor/bin/phpstan analyse --memory-limit=-1
8781

8882
- name: Run tests
89-
run: tools/phpunit test/ --bootstrap vendor/autoload.php
83+
run: vendor/bin/phpunit test/
9084

9185
php83b:
9286
name: "php 8.3, laravel 11"
@@ -102,17 +96,14 @@ jobs:
10296
- name: Checkout repository
10397
uses: actions/checkout@v4
10498

105-
- name: Install tools
106-
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
107-
10899
- name: Install dependencies
109100
run: composer update --no-interaction --prefer-lowest --with illuminate/support:^11.0
110101

111102
- name: Run static analysis
112103
run: vendor/bin/phpstan analyse --memory-limit=-1
113104

114105
- name: Run tests
115-
run: tools/phpunit test/ --bootstrap vendor/autoload.php
106+
run: vendor/bin/phpunit test/
116107

117108
php82:
118109
name: "php 8.2"
@@ -128,17 +119,14 @@ jobs:
128119
- name: Checkout repository
129120
uses: actions/checkout@v3
130121

131-
- name: Install tools
132-
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
133-
134122
- name: Install dependencies
135123
run: composer update --no-interaction --prefer-lowest
136124

137125
- name: Run static analysis
138126
run: vendor/bin/phpstan analyse --memory-limit=-1
139127

140128
- name: Run tests
141-
run: tools/phpunit test/ --bootstrap vendor/autoload.php
129+
run: vendor/bin/phpunit test/
142130

143131
php82a:
144132
name: "php 8.2, laravel 9, PSR log 2, symfony 6"
@@ -154,17 +142,14 @@ jobs:
154142
- name: Checkout repository
155143
uses: actions/checkout@v3
156144

157-
- name: Install tools
158-
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
159-
160145
- name: Install dependencies
161146
run: composer update --no-interaction --prefer-lowest --with illuminate/support:^9.0 --with psr/log:^2.0 --with symfony/http-foundation:^6.0 --with symfony/http-kernel:^6.0 --with symfony/psr-http-message-bridge:^6.0
162147

163148
- name: Run static analysis
164149
run: vendor/bin/phpstan analyse --memory-limit=-1
165150

166151
- name: Run tests
167-
run: tools/phpunit test/ --bootstrap vendor/autoload.php
152+
run: vendor/bin/phpunit test/
168153

169154
php81:
170155
name: "php 8.1"

.phive/phars.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpunit" version="^11.0.0" installed="11.5.15" location="./tools/phpunit" copy="false"/>
4-
<phar name="php-cs-fixer" version="^3.22.0" installed="3.69.1" location="./tools/php-cs-fixer" copy="false"/>
3+
<phar name="php-cs-fixer" version="^3.22.0" installed="3.84.0" location="./tools/php-cs-fixer" copy="false"/>
54
</phive>

0 commit comments

Comments
 (0)